IntelliJ IDEA 13.1.0 Web Help

Some features described here are available in Ultimate edition only.

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:
  • One
  • Many
Optional Use this check box to control over table join by specifying whether the relationship is mandatory or not.
  • When the check box is cleared, the relationship is mandatory.
  • When the check box is selected, the relationship is optional.
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:
  • Eager
  • Lazy
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.

See Also



Web Resources: