Adding queries to CMP 2.x entity beans

You can add queries to container-managed persistence (CMP) 2.x entity beans.

To add a query to a CMP 2.x entity bean:
  1. In the diagram editor, right-click a CMP 2.x entity bean; then click Add EJB > Query.
  2. Follow the instructions in the Edit Query wizard.
  3. 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
Related concepts
Class diagrams
Related tasks
Adding session bean facades to CMP entity beans
Creating fields of CMP entity beans
Adding finder methods to CMP 1.x entity beans
Adding client views to CMP entity beans
Removing client views from CMP entity beans
Creating and managing CMP relationships
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.