You can create relationships between CMP entity beans. The relationship fields and the accessor methods are automatically created. For more information, see Container-Managed Relationships.
You have the entity beans displayed on a page of the Diagram view.
1. In the toolbar, select the EJB Relation icon.
2. Click on the first entity bean and drag and drop the link to the second entity bean.
An arrow appears linking the two beans.
3. Select the arrow to display the properties of the relationship in the Properties view.
4. Edit the properties of the relationship.