7.1. Introducing Container-Managed Persistence
Previous to the EJB 2.0 specification, a bean developer could only use container-managed persistence with isolated entity beans—that is, beans with no relationship fields (foreign keys) to other entity beans. This restriction made CMP possible for simple entity beans only and prevented CMP use with real-world, enterprise applications.
That all changed with the EJB 2.0 specification. With the addition of local interfaces, bean developers can now specify entity bean relationships and build enterprise systems with data that models real-world requirements more effectively. As we explore the properties of entity beans with container-managed persistence, keep in mind that CMP and BMP entity beans still ...
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.