Adding fields to CMP primary key fields

You can add fields to the primary key fields of a container-managed persistence (CMP) entity bean.

To add a field to a CMP primary key field, in the diagram editor, right-click the field that is not a key in the CMP entity bean; then click Edit > Add to Key.
The CMP field is added to the primary key field and the field of the CMP entity bean has an icon with a key beside it. The CMP field also appears in the Project Explorer view with an icon identical to the one in the diagram editor.
Related concepts
Class diagrams
Related tasks
Adding fields to CMP entity beans
Editing fields of CMP entity beans
Removing fields from CMP primary key fields
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.