Hi all. I am wondering if anyone can give me some pointers on using
EJB QL in WebSphere. I understand that WebSphere currently support only 1.1 but it supposedly also support EJB QL in the ibm-ejb-jar-ext.xmi file. I try adding my own finder descriptor text as follow :
finderDescriptors xsi:type="ejbext:EjbqlFinderDescriptor" mi:id="findbyowner" ejbqlQueryString="SELECT OBJECT(o) FROM MYTABLE AS o WHERE (o.userID = ?1) AND (o.NAME = ?2)"
finderMethodElements xmi:id="MethodElement_2" name="findByOwnerIDandType" parms="java.lang.Long java.lang.Integer " type="Home"
I also have this two methods in my home interface.
But this doesn't seems to work. So I used the the "where clause" via the AAT, which only work if I use "long" instead of "java.lang.Long". If I use "java.lang.Long", it will give me a SQLPreparedStatement "setLong" error. What I don't understand is, in my previous declaration of java.lang.Long, WebSphere is smart enuff to add a longValue() to my java.lang.Long variable in the setLong methods. Can anyone help on this?