Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ejbSelect method doubt..plz help  RSS feed

 
devender
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I get the following error: the details are given below!

Unknown query: public abstract java.util.Collection com.sextanttech.entities.implementations.UserBean.ejbSelectUsers(int,int,int) throws javax.ejb.FinderException


The relevant part of my ejb-jar.xml file
-----------------------------------------------------

<query>
<query-method>
<method-name>ejbSelectUsers</method-name>
<method-params>
<method-param>int</method-param>
<method-param>int</method-param>
<method-param>int</method-param>
</method-params>
</query-method>
<ejb-ql><![CDATA[
SELECT user.userName
FROM UserTable user
WHERE user.flag1 = ?1
AND user.flag2 = ?2
AND user.flag3 = ?3]]>
</ejb-ql>
</query>


The relevant part of my entity bean class:
-------------------------------------------------------

public Collection getselectedusers() throws FinderException // this is my business method impl.
{

Collection cc = this.ejbSelectUsers(1,1,1);
return cc;
}

public abstract Collection ejbSelectUsers( int flag1,int flag2,int flag3 ) throws FinderException;




Thanks in advance!
alex.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37222
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"alexanderpetrous",

We're pleased to have you here with us in the EJB forum, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks,
Jeanne
Bartender
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!