IntelliJ IDEA 2016.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.

ItemDescription
Relationship NameType the name of a new relationship link.
DescriptionType optional description. If the text is long, click the ellipsis button, and type the desired text in the editor dialog box.
Role 1,2Use these sections of the dialog box to specify attributes of each side of a relationship link.
EJBSelect the source and target EJBs from the drop-down lists.
Role nameType the names of the roles for each side of the relationship link.
MultiplicitySelect multiplicity from the drop-down list.
CMR FieldSelect this check box, 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 nameType the name of the new CMR field. The <cmr-field-name> element is generated in the deployment descriptor.
Field typeSelect the type of the new CMR field. The <cmr-field-type> element is generated in the deployment descriptor.
Getter / SetterIf the check boxes are selected, the getter and setter methods are generated in the bean implementation class.

See Also

Procedures:

Last modified: 5 September 2016