Removing fields from CMP primary key fields

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

To remove a field from a CMP primary key field, in the diagram editor, right-click the CMP field that is a primary key field in the CMP entity bean; then click Edit > Remove from Key.

The field is removed from the primary key field and the field of the CMP entity bean has an icon without a key beside it. The CMP field is updated and 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
Adding fields to CMP primary key fields
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.