Adding queries to CMP 2.x entity beans
In UML visualization, you can add queries to container-managed persistence (CMP) 2.x entity beans.
To add a query to a CMP 2.x entity bean:
- In the diagram editor, right-click a CMP 2.x entity bean; then click Add EJB > Query.
- Follow the instructions in the Edit Query wizard.
- Click Finish.
Tip: You can also use the action bars in the diagram editor or the EJB Deployment Descriptor to add queries to CMP 2.x entity beans
Parent topic
Designing CMP entity beans
Related tasks
Adding session bean facades to CMP entity beans
Adding fields to CMP entity beans
Editing CMP fields
Adding fields to CMP primary key fields
Removing fields from CMP primary key fields
Adding finder methods to CMP 1.x entity beans
Adding client views to CMP entity beans
Removing client views from CMP entity beans