7.6. Design Guidelines and Patterns
Along with CMP entity beans, we've also introduced entity beans that maintain relationships with other entity beans. With the EJB 2.0 specification, it is possible to implement these relationship fields with container-managed relationships (CMR). Let's review the design elements and patterns that characterize the enterprise application presented in this chapter.
Container-managed persistence adds portability to systems because bean developers do not have to write database access code. Compared to BMP, the amount of bean implementation code shrinks when using CMP. This is largely due to declarative information in the deployment descriptor, which allows the container to generate implementation code. ...