db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sven Haiges ...@flavor.de>
Subject Criteria OR
Date Mon, 24 Nov 2003 21:29:35 GMT
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 

Mime
View raw message