Hi,

I am a bit confused and did not find the answer in the
EJB spec:

Is the following finder allowed in EJB-QL or not?
<query>
 <query-method>
   <method-name>findPojo</method-name>
   <method-params>
    <method-param>com.acme.POJO</method-param>
   </method-params>
 </query-method>
 <ejb-ql>
    <![CDATA[SELECT Object(o) from EntityOne o WHERE o.pojo=?1]]> 
 </ejb-ql>
</query>

With POJO just being a pojo that implements Serializable

What are the allowed data types for queries? Primitive types (int, ..)
java.lang.{String, Integer,...} and?

Does anyone have the part in the spec handy that clarifies this?

Thanks
  Heiko

-- 
Bancotec GmbH      EMail: [EMAIL PROTECTED]
Calwer Str. 33     Telefon: +49 711 222 992 900
D-70173 Stuttgart  Telefax: +49 711 222 992 999
Ein Unternehmen der Cellent AG http://www.cellent.de/


-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to