The dialog box opens when you click a link in the Entity Relationship diagram of a persistence unit or a session factory.
Use this dialog box to view and edit relationships between entities within a Hibernate session factory or a JPA persistence unit.
The dialog box contains two panes for two sides of the selected relationship. The controls in the panes are identical. For unidirectional relationships only one pane is filled in.
| Item | Description |
|---|---|
| Attribute | In this text box, specify the name of the relationship. |
| Multiplicity | In this drop-down list, specify the multiplicity on the current side of the relationship. The available options are:
|
| Optional | Use this check box to control over table join by specifying whether the relationship is mandatory or not.
|
| Owner | Select this option to make the current entity owner of the relationship. |
| Fetch Type |
In this area, specify the FetchType for the relationship. The available options are:
|
| Cascade Type | In this area, specify which cascade operations should be applied to the entity
by selecting the check boxes next to the relevant options. |
for the relationship. The available options are: