IntelliJ IDEA 2018.2 Help

EJB Relationship Properties dialog

The EJB Relationship Properties dialog opens when your draw a line between entity beans on an EJB ER diagram. (In this way you create a relationship between the corresponding beans.)

Use this dialog to define the relationship properties, and also to add the corresponding elements to the deployment descriptor.

Item

Description

Relationship Name

Type the name of a new relationship link.

Description

Type optional description. If the text is long, click the ellipsis button, and type the desired text in the editor dialog box.

Role 1,2

Use these sections of the dialog box to specify attributes of each side of a relationship link.

EJB

Select the source and target EJBs from the drop-down lists.

Role name

Type the names of the roles for each side of the relationship link.

Multiplicity

Select multiplicity from the drop-down list.

CMR Field

Select this checkbox, if you want to create a container-managed relation field <cmr-field > in the deployment descriptor. If this option is checked, specify following attributes.

Field name

Type the name of the new CMR field. The <cmr-field-name> element is generated in the deployment descriptor.

Field type

Select the type of the new CMR field. The <cmr-field-type> element is generated in the deployment descriptor.

Getter / Setter

If the checkboxes are selected, the getter and setter methods are generated in the bean implementation class.

Last modified: 20 November 2018

See Also

Procedures: