This content has been marked as final.
Show 2 replies
-
1. Re: EJB-QL: How to compare if the parameter is java.lang.Obj
tdang Aug 9, 2002 3:22 AM (in response to ericmacau)all java classes extend the class Object, so they are all objects, why should you want to find out if a class is an Object. I do not understand your purpose for this compare.
Regards. -
2. Re: EJB-QL: How to compare if the parameter is java.lang.Obj
ericmacau Aug 13, 2002 4:10 AM (in response to ericmacau)Hello,
If a field(property) in a EJB(CMP) declares as Object(BLOB in DB), how can I use WHERE CLAUSE in EJB-QL to compare two fields.
For example,
<ejb-sql>
select object(a) from MyEJB as a where a.x = ?1
</ejb-ql>
The java type of a.x is java.lang.Object,
It failed when deployment. How can I compare the field with Object(BLOB) type in ejb-ql ?
Best regards,
Eric