# 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.

| Item | Description |
| --- | --- |
| Attribute | The name of the field to be added to the corresponding entity and also the name of the relationship. |
| Multiplicity | The multiplicity on the corresponding side of the relationship. |
| Optional | Whether the relationship is optional. |
| Owner | The owner of the relationship. |
| Fetch Type | See [FetchType](http://docs.oracle.com/javaee/7/api/javax/persistence/FetchType.html). |
| Cascade Type | See [CascadeType](http://docs.oracle.com/javaee/6/api/javax/persistence/CascadeType.html). |

## See also

### Reference

[Persistence tool window](persistence-tool-window.html)

