EJB container-managed relationships (CMR)

Those familiar with relational database modeling know of an artifact called an entity-relationship diagram (ERD). The ERD defines the relationships between the tables within the relational database, and generally these relations are expressed through primary key and foreign key declarations. A foreign key in one database matches the primary key in another, and a relationship is formed.

Defining relationships for entity beans is much like the process of defining an ERD for a relational database. In fact both use the entity nomenclature, and the major reason we have to do entity bean relationships is because of the underlying database relationships. In the case of entity beans, however, we are relating ...

Get EJB 2.0 Development with WebSphere Studio Application Developer now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.