Return-Path: X-Original-To: apmail-cayenne-user-archive@www.apache.org Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B8B3B92AF for ; Thu, 9 Feb 2012 10:57:16 +0000 (UTC) Received: (qmail 66514 invoked by uid 500); 9 Feb 2012 10:57:16 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 66321 invoked by uid 500); 9 Feb 2012 10:57:09 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 66300 invoked by uid 99); 9 Feb 2012 10:57:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2012 10:57:07 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FORGED_YAHOO_RCVD,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2012 10:57:00 +0000 Received: from ben.nabble.com ([192.168.236.152]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RvRg7-0004dR-7G for user@cayenne.apache.org; Thu, 09 Feb 2012 02:56:39 -0800 Date: Thu, 9 Feb 2012 02:56:39 -0800 (PST) From: atomix To: user@cayenne.apache.org Message-ID: <1328784999213-3729107.post@n3.nabble.com> In-Reply-To: <1328784452002-3729092.post@n3.nabble.com> References: <1328780031934-3728912.post@n3.nabble.com> <5A55A61D-6CAD-4DE2-A9C6-43F4DA57CEBE@objectstyle.org> <1328781522310-3728983.post@n3.nabble.com> <1328784249706-3729086.post@n3.nabble.com> <1328784452002-3729092.post@n3.nabble.com> Subject: Re: HOW TO : Creating a SelectQuery has Expression like this? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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.