cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: HOW TO : Creating a SelectQuery has Expression like this?
Date Thu, 09 Feb 2012 11:05:52 GMT
Ah, you found it yourself :) See my other message explaining chaining expressions outside and
inside the SelectQuery.

On Feb 9, 2012, at 1:56 PM, atomix wrote:

> 		
> 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