Modeling a Relationship Between Entity Beans

Relationships can be modeled between any two entity beans on a class diagram. The entity bean at each end of a relationship must be EJB 2.0, with container-managed persistence and have a local interface.

To model a relationship between two Enterprise JavaBeans on a diagram:

  1. Click the icon for the relationship you want to create, from those listed on the EJB Component Palette:

If these icons are not displayed, select EJB from the dropdown on the Component Palette.


Related topics

Modeling a Bean on a Diagram
Modeling a Reference Between Modeled Beans