Return-Path: Delivered-To: apmail-incubator-cayenne-user-archive@locus.apache.org Received: (qmail 20027 invoked from network); 23 Apr 2006 15:55:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Apr 2006 15:55:08 -0000 Received: (qmail 2316 invoked by uid 500); 23 Apr 2006 15:55:08 -0000 Delivered-To: apmail-incubator-cayenne-user-archive@incubator.apache.org Received: (qmail 2295 invoked by uid 500); 23 Apr 2006 15:55:07 -0000 Mailing-List: contact cayenne-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cayenne-user@incubator.apache.org Delivered-To: mailing list cayenne-user@incubator.apache.org Received: (qmail 2278 invoked by uid 99); 23 Apr 2006 15:55:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Apr 2006 08:55:07 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [63.88.172.158] (HELO mail.icentris.com) (63.88.172.158) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 23 Apr 2006 08:55:06 -0700 Received: (qmail 4027 invoked from network); 23 Apr 2006 15:54:45 -0000 Received: from c-24-10-128-174.hsd1.ut.comcast.net (HELO cks) (24.10.128.174) by 172.17.15.1 with SMTP; 23 Apr 2006 15:54:45 -0000 Reply-To: From: "Chad Smith" To: Subject: RE: Newbie question: Date: Sun, 23 Apr 2006 09:54:14 -0600 Message-ID: <000701c666ee$2c045990$6501a8c0@cks> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 In-Reply-To: <000201c666e2$013b1890$6501a8c0@cks> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N never mind - it was an assignment problem -----Original Message----- From: Chad Smith [mailto:Chad.Smith@ic2Solutions.com] Sent: Sunday, April 23, 2006 8:27 AM To: cayenne-user@incubator.apache.org Subject: Newbie question: I have this syntax ... Expression q1 = ExpressionFactory.matchExp(Company.OWNER_ID_PROPERTY, userId); Expression q2 = ExpressionFactory.matchExp(Company.SHARED_FLAG_PROPERTY, "Y"); q1.orExp(q2); select.andQualifier(q1); I want it to produce SQL that looks like this ... SELECT * FROM company WHERE (t0.owner_id = 'jsmith' OR t0.shared_flag = 'Y') ... the problem is the OR clause doesn't get appended btw: I don't want this syntax ... SELECT * FROM company WHERE (t0.owner_id = 'jsmith') OR (t0.shared_flag = 'Y') Can someone tell me what I'm doing wrong? Thanks in advance, Chad