IntelliJ IDEA 2016.1 Help

Edit Relationship

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.

AttributeIn this text box, specify the name of the relationship.
MultiplicityIn this drop-down list, specify the multiplicity on the current side of the relationship. The available options are:
  • One
  • Many
OptionalUse 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.
OwnerSelect 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 TypeIn this area, specify which cascade operations should be applied to the entity by selecting the check boxes next to the relevant options.

See Also

Last modified: 13 July 2016