Summary

The EJB container provides automatic management of both the persistent state of an entity bean and its relationships to other entity beans. An entity bean that is the target of a container-managed relationship must provide local interfaces. Container-managed relationships may be one-to-one, one-to-many, or many-to-many, and may be bidirectional or unidirectional.

Relationships are implemented as container-managed relationship fields. Similar to persistent fields, container-managed relationship fields are virtual fields that are defined and accessed by public abstract get and set accessor methods in the CMP entity bean class. The relationship fields are also declared in the deployment descriptor.

Container-managed relationships provide a cascade-delete facility that automatically enables the lifetime of the dependent object to be dependent on the lifetime of its parent.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.148.113.229