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:
Click the icon for the relationship you want to create, from those
listed on the EJB Component Palette:
Note: If you want to represent this relationship using a container-managed relationship (CMR) field, this is the bean in which the field will be created.
Note: To change the multiplicity of a relationship end on the diagram, right-click on the relationship end and choose either Multiplicity | 1 or Multiplicity | *.
Related topics
Copyright © 1997, 2004, Oracle. All rights reserved.