db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Moossen NO TENGO! ." <mmoos...@123mail.cl>
Subject Re: RE: my experience with torque
Date Mon, 23 Aug 2004 11:06:31 GMT
> It works like this :
> 
> Criteria criteria = new Criteria();
> Criteria.Criterion crit1 =
> criteria.getNewCriterion(table.id,(Object)null,Criteria.ISNOTNULL); 
> Criteria.Criterion crit2 = 
> criteria.getNewCriterion(table1.date1,new Date()
> ,Criteria.LESS_THAN);
> Criteria.Criterion crit3 = criteria.getNewCriterion(table2.date2,new
> Date(),Criteria.GREATER_THAN);
> 
> criteria.add(crit1.or(crit2.and(crit3)));

this is what i thought when i read the doc, but i think you have not tried it...
you get just AND conjunctions and no parenthesis... :(



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message