cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From atomix <say_i_love_you_4e...@yahoo.com>
Subject Re: HOW TO : Creating a SelectQuery has Expression like this?
Date Thu, 09 Feb 2012 10:56:39 GMT
		
Expression qual = ExpressionFactory.matchExp("toTestresult", aTestresult);
//qual.andExp(Expression.fromString("getToAnswer.status = status"));
//qual.andExp(Expression.fromString("status = 1"));

query.andQualifier(Expression.fromString("toAnswer.status = status"));
query.andQualifier(Expression.fromString("status = 1"));
query.andQualifier(qual);

Ahhhhhhhhh, got that!

I should do like 
*query.andQualifier*
 not
*qual.andExp*

So, what are the differences between the two ?


--
View this message in context: http://cayenne.195.n3.nabble.com/HOW-TO-Creating-a-SelectQuery-has-Expression-like-this-tp3728912p3729107.html
Sent from the Cayenne - User mailing list archive at Nabble.com.

Mime
View raw message