Entering content frame

Procedure documentation Adding and Removing Relations Locate the document in its SAP Library structure

Use

You can create relationships between CMP beans. When you create the relationship fields, the corresponding get and set methods are created. For more information, see Developing Entity Beans.

Prerequisites

The multipage editor for the bean is open. See Editing Enterprise Beans.

Procedure

Adding Relations

       1.      Choose the Relations tab.

This graphic is explained in the accompanying text

       2.      Select Relationships.

       3.      Choose Add.

This graphic is explained in the accompanying text

       4.      In the Name field, enter a name that is unique within the EJB-JAR.

       5.      In the empty Bean field, specify the other bean in the relationship.

       6.      In the CMR Field Name field, enter a name.

This must begin with a lowercase letter.

       7.      If the relationship is one–to-many or many-to-many, specify the type of interface utilized by the accessor methods. This can be Collection or Set.

       8.      Save your changes.

Removing Relations

       1.      Choose the Relations tab.

       2.      Select the relation.

       3.      Choose Remove.

       4.      Save your changes.

 

Leaving content frame