
September 20th, 2001, 05:32 PM
|
|
Junior Member
|
|
Join Date: Sep 2001
Location: pakistan
Posts: 7
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
how to write finder-query and methods
i'm working on EJB.as you know the deployment descriptors were written in XML in EJB.
i have problem in writing finder queries in weblogic.cmp.rdbms-jar.xml file.
for example i finder query/method to get records greater than 5000 is....
<finder>
<method-name>findBigAccounts</method-name>
<method-params>
<method-param>double</method-param>
</method-params>
<finder-query><![CDATA[(> balance $0)]]></finder-query>
</finder>
i want some examples query like this to to understand them.
for example if i want to perform the following tasks what should i do.
1. get the meximum user_id.
2. get the last-names that are not NULL.
|