This one time, at band camp, Werner Guttmann said:
WG>your query could be expressed in quite some ways, but here's one way it could be
done.
WG>
WG>select p from Person p where p.courses.id = 1 or p.courses.id = 2
WG>
WG>Apart from this, you could use the IN operator, but here I have to pass on the
syntax as I am not really familiar ... 8-(. But maybe somebody else can help
WG>?
Here's an example of the IN operator for Castor OQL:
select p from Person p where p.courses.id in list ( 1, 2 )
Bruce
--
perl -e 'print unpack("u30","<0G)[EMAIL PROTECTED]&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
The Castor Project
http://www.castor.org/
Apache Geronimo
http://incubator.apache.org/projects/geronimo.html
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev