ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ibatis534 <iba...@mailinator.com>
Subject Re: Complex Abator Query
Date Wed, 13 Aug 2008 05:43:04 GMT

Thanks.

Can I make a feature request that enables Example Classes to construct
queries in a more dynamic way. It would be nice to be able to combine
clauses as either 'OR' or 'AND' like 


criteria1 = example.createCriteria().andField1EqualTo(testValue); 
criteria2 = example.createCriteria().andField2IEqualTo(testValue2); 

example.andCriteria(criteria1);
if(testValue3 > 5)
    example.andCriteria(criterial2);
else
    example.orCriteria(criterial2);
   

I guess I'm looking for some way to combine the power of the Java5 Generator
with the flexibility of the Legacy Generator.
-- 
View this message in context: http://www.nabble.com/Complex-Abator-Query-tp18937755p18957341.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Mime
View raw message