| The query-method element is used to specify the method (DB/SR/CM-"on the home") for a finder or |
| select query. |
| |
| The method-name element specifies the name of a finder or select |
| method in the entity bean's implementation class or a select method in |
| the dependent object class. |
| |
| Each method-param must be defined for a query-method using the |
| method-params element. |
| |
| Used in: query |
| |
| Example: |
| |
| Example: |
| <query> |
| <description>Method finds large orders</description> |
| <query-method> |
| <method-name>findLargeOrders</method-name> |
| <method-params></method-params> |
| </query-method> |
| <ejb-ql>SELECT ENTITY(o) FROM Order o WHERE o.amount > 1000</ejb-ql> |
| </query> |