Configuring named queries
Procedure
- On the Tasks page of the wizard, select Named
Queries from the Task list.
- The queries list displays all of the generated queries.
You can edit the existing queries, remove the queries, and create
your own queries.
- To add a new query, click Add to
open the Add Named Query window.
- On the Result Attributes tab, select the attributes for
the query to return, or select a result bean to map to the entity
attributes.
- In the Named Query Name field, enter
a name to uniquely identify the named query. The text area displays
the query as you are building it.
- On the Filter Results tab, define filters for the query.
- On the Order Results tab, define how the query results
are displayed.
- Click OK to close the Add
Named Query window.