Defining EJB 3 Association Mappings

EJB 3 persistence provides support for most of the association mapping strategies. We will just address the differences here.

One association must be defined between two Entity classes or one Entity class and one Mapped superclass before it can be mapped. Association mapping with a Mapped superclass as the target will be ignored. Embeddable classes can be either the source or the target of associations.

Mapping for associations with association class is not currently supported. You must separate each kind of associations into two equivalent associations.

For more informations about mapping, see O/R Mapping Modeling.