Adding fields to CMP entity beans in domain modeling class diagrams
You can use domain modeling class diagrams to add fields
to container-managed persistence (CMP) entity beans and define them
as key fields.
Before you begin
Procedure
- In the diagram editor, right-click a CMP entity bean; then click .
- In the CMP Fields wizard, click Add.
- In the CMP Attributes window, specify a name and a type for the CMP field, specify its array dimension or define it as a key field, and click Apply.
- Click Finish.
Results
Tip: You can also use the action bars in
the diagram editor or the EJB Deployment Descriptor to
add fields to CMP entity beans.