Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Little Thing about ejb QL

 
Nayyer Kamran
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in a finder method I want to use anding between two parameters currently I am using is 'AND' but it does not works so what would be and where do I can find details about ejb query language.
finder method syntax.
<query>
<query-method>
<method-name>findBySession</method-name>
<method-params>
<method-param>int</method-param>
<method-param>int</method-param>
</method-params>
</query-method>
<ejb-ql>
< ![CDATA[WHERE UserID = ?1 AND SurveyID= ?2]]>
</ejb-ql>
</query>

Thanks in advance
Nayyer
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!