Right now there is no error handling in the ejb-ql parser. The problem with
your ejb-ql is you have status when you should have t.status.
It should work then,
-dain
> -----Original Message-----
> From: Dave Smith [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 31, 2001 8:12 AM
> To: [EMAIL PROTECTED]
> Subject: [JBoss-dev] EJB playing with finders
>
>
> I am trying a simple home method with a query
>
> Home method
>
> public java.util.Collection findByInQueue()
> throws java.rmi.RemoteException,javax.ejb.FinderException;
>
>
> ejb-jar.xml snippit
>
> <query>
> <ejb-ql>select object(t) from transferhead t where status=' '</ejb-ql>
> <query-method>
> <method-name>findByInQueue</method-name>
> <method-params>
> </method-params>
> </query-method>
> <result-type-mapping>Remote</result-type-mapping>
> </query>
>
> Now there are two problems
>
> 1)
> [CMP,DEBUG] Finder: inQueue
> [CMP,DEBUG] Could not create the finder findByInQueue, because no
> matching CMP field was found.
>
> there are no arguments, just run it.
>
> 2) Now actually call the homemethod and I get
> findByInQueue command executing: SELECT t1_t.objectid FROM
> Transferhead t1_t
>
> Which politly returns all of them. Should it not throw an error or at
> least not return anything?
>
>
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-development
>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development