IntelliJ IDEA 2024.1 Help

Create / Edit Relationship

This dialog opens when you draw or double-click a link between entities on an entity-relationship diagram for a persistence unit or a session factory.

Specify the settings for the relationship.

The left-hand and the right-hand parts are for the two sides of the relationship. For a unidirectional relationship, specify the settings only in one of the parts.




The name of the field to be added to the corresponding entity and also the name of the relationship.


The multiplicity on the corresponding side of the relationship.


Whether the relationship is optional.


The owner of the relationship.

Fetch Type

See FetchType.

Cascade Type

See CascadeType.

Last modified: 17 June 2024