Parent « Annotation « JPA Q&A





1. Composition and JPA annotations - several parent types    forum.hibernate.org

Hi, consider the following example. Suppose that we have two entities, Company and Person for example. Both of them need to be able to pass messages to other entities and receive them. For example, a Company must be able to send and receive messages to another Company but also to Persons as well. A Person needs similar functionality. Furthermore, later on, ...