Enterprise JavaBeans™ Component Architecture: Designing and Coding Enterprise Applications
by Gail Anderson, Paul Anderson
7.7. Key Point Summary
This chapter not only introduces container-managed persistence (CMP), but it also stresses the importance of relationships between entity beans. Entity bean structure is similar, whether you're using CMP or BMP. However, with CMP, the container generates code based on abstract access methods and declarative information provided by the bean developer during deployment.
Here are the key points from this chapter.
Entity beans model business data. Each entity bean in general maps to a corresponding row in a database.
Entity beans have a unique primary key that maps to the underlying database primary key.
If CMP entity beans are related (for example, the Customer EJB is related to zero or more Order EJBs), then we use container-managed ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access