Skip Headers

# One-to-One Mappings and EJB

Previous

Next

To maintain EJB compliance, the object attribute that points to the target of the relationship must be the local interface type–not the bean class.

TopLink provides variations on one-to-one mappings that lets you define complex relationships when the target of the relationship is a dependent Java object. For example, variable one-to-one mappings enable you to specify variable target objects in the relationship. These variations are not available for entity beans, but are valid for dependent Java objects.

For more information, see the Configuring a Relational Variable One-to-One Mapping.