Abstract persistence schema mappings

The abstract persistence schema allows us to specify two things: container-managed persistence data-to-object mappings (CMP), and container-managed relationships (CMR). It is similar to the idea of how a database schema is defined, where the tables, fields, and relationships of the tables would be defined. In the EJB abstract persistence schema, these would be our entity beans, CMP fields, and CMR fields.

This section describes how CMP for persistence actually works (CMR will be covered in “EJB container-managed relationships (CMR)” on page 116r). It is one of the basic structures that a developer must understand even when developing simple CMPs.

Persistent fields

Persistent fields are the fields of our ...

Get EJB 2.0 Development with WebSphere Studio Application Developer 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.