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 .
- 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