aspose file tools*
The moose likes BEA/Weblogic and the fly likes How to write this find Query Element Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "How to write this find Query Element" Watch "How to write this find Query Element" New topic
Author

How to write this find Query Element

Binu Nadesan
Greenhorn

Joined: Oct 16, 2002
Posts: 2
Hi Everybody,
I'm totally new to EJB, I have been trying to run a EJB program but in the mid way I faced a problem in weblogic-cmp-rdbms-jar.xml file. This is regarding the finder-query element.
My xml defination is like this
<finder>
<finder-name>findInRange</finder-name>
<finder-param>float</finder-param>
<finder-param>float</finder-param>
<finder-query>taxRate BETWEEN $0 AND $1</finder-query>
</finder>
The findInRange function take two float values as argument and I wanted the SQL to be something like
SELECT taxRate FROM TAXEJBTABLE WHERE taxRate BETWEEN $0 AND $1
How do I give this statement in the finder-query elemnt
Any Sort of help/hints will be appreciated...
Thanks...
bnadesan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to write this find Query Element