8.8. Using CMP2.0 Persistence

The following sections highlight the main differences between CMP as defined in EJB 2.0 specification (called CMP2.0) and CMP as defined in EJB 1.1 specification (called CMP1.1). Major new features in the standard development and deployment of CMP2.0 Entity Beans are listed (comparing them to CMP1.1), along with JOnAS-specific information. Mapping CMP2.0 Entity Beans to the database is described in detail. Note that the database mapping can be created entirely by JOnAS, in which case the JOnAS-specific deployment descriptor for an Entity Bean should contain only the datasource and the element indicating how the database should be initialized.