Chapter 7. Entity Beans with CMP
Topics in This Chapter
Container-Managed Persistence
Entity Bean Relationships and Navigability
Entity Bean CMP and CMR Fields
EJB Query Language
Finder/Select Queries
Local Objects
Session Facade Pattern
Now that we've slugged through the swamp of BMP, tackling dirty flags, DAOs, and the underlying workings of finder methods, we're ready to take on the challenge of Container-Managed Persistence. With CMP, the bean developer does not write the database access code that entity beans use to insert, select, update, and delete records. If business methods modify persistent variables, the CMP mechanism automatically records these changes in the underlying datastore. And, database independent persistent mechanisms are no ...
Get Enterprise JavaBeans™ Component Architecture: Designing and Coding Enterprise Applications now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.