Q&A

Q1:What's the difference between a container-managed persistent field and container-managed relationship field?
A1: A persistent field is designed to represent or store a single unit of data. A relationship field is designed to represent or store a reference to another entity bean. Unlike a persistent field, a relationship field does not constitute the state of an entity bean.
Q2:How do I implement a container-managed relationship field in the entity bean class?
A2: Similar to container-managed persistent fields, container-managed relationship fields are not defined in the entity bean class and are virtual fields only. The entity bean class declares the public abstract get and set methods for each relationship field. The implementation of these methods is provided by the EJB container at deployment time.
..................Content has been hidden....................

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