You need to use Criterion and or them... search the message archive for
examples.

Tulsi

 --- Sven Haiges <[EMAIL PROTECTED]> escribió: 
> I would like to select all rows that either have A=1 or B=1 ?
> 
> This is basically a simple OR in a SQL statement.... how can I do
> that with 
> the Criteria object?
> 
> criteria.or(ProductPeer.CATEGORY_A, true);
> criteria.or(ProductPeer.CATEGORY_B, true);
> 
> The sample code above does not work... can someone provide a code
> sample?
> 
> thanx,
> sven 
> >
---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED] 

------------
Los mejores usados y las más tentadoras 
ofertas de 0km están en Yahoo! Autos.
Comprá o vendé tu auto en
http://autos.yahoo.com.ar

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to