Developing relationships

In this section, we add the two relationships of the bank model (Figure 11-33) as container-managed relationships (CMR) to the existing CMP entity model.

Figure 11-33. Bank model relationships

In “Developing inheritance structures” on page 447, we implement the inheritance hierarchy; for now we are implementing the relationships between the entity beans.

Support for relationships in Application Developer

Application Developer supports the creation of three types of relationships as CMR.

One-to-one (1:1) relationship

In such a case, usually one of the entity beans is the master and the other is a dependent of the ...

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.