Ref Section 22.5 Deployment descriptor DTD of EJB Spec
<!--
The ejb-ql element contains the EJB QL query
string that defines a
finder or select query. This element is defined within the scope of a
query element whose contents specify the finder or the select method
that uses the query. The content must be a valid EJB QL query string
for the entity bean for which the query is specified.
The ejb-ql element must be specified for all queries that are expressible
in EJB QL. -->
Example:
<query>
<query-method>
<method-name>ejbSelectPendingLineitems</method-name>
<method-params/>
</query-method>
<ejb-ql>SELECT OBJECT(l) FROM LineItems l WHERE l.shipped <> TRUE </ejb-ql>
</query>
This is how the mapping is provided in the DD.