Jon Stevens wrote:
>
> Ok, I don't get it...
>
> How do I do something like this with a Criteria...
>
> select * from table where columnA='foo' OR columnA='bar'
for this particular case:
String[] values = new String[2];
values[0]="foo";
values[1]="bar";
...
Criteria crit = new Criteria();
crit.addIn(...Peer.columnA, values);
AFAIK there is now way to do general-purpose way to create OR in Criteria other than
running two separate queries.
fedor.
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]