EJB 2.0 enhances the Container Managed Persistence (CMP) model for entity beans as follows:
The deployment descriptor more fully describes the persistent fields in the bean and the required database queries, making for less work after deploying an EJB JAR file that contains CMP entity beans.
CMP entity beans in the same EJB JAR (which maps to an EAServer package) can have container-managed relationships. For example, an Order bean may have an items field that consists of a collection of Inventory bean instances representing the items being purchased. Or, an Employee bean may be related to itself, with manager and employees fields that contain Employee instances.
For more information on EAServer CMP support, see Chapter 27, “Creating Entity Components.”
Copyright © 2005. Sybase Inc. All rights reserved. |