Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 71970 invoked from network); 19 Feb 2009 13:36:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Feb 2009 13:36:56 -0000 Received: (qmail 52113 invoked by uid 500); 19 Feb 2009 13:36:55 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 52104 invoked by uid 500); 19 Feb 2009 13:36:55 -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 52093 invoked by uid 99); 19 Feb 2009 13:36:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Feb 2009 05:36:55 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of razumovsky.andrey@gmail.com designates 74.125.44.156 as permitted sender) Received: from [74.125.44.156] (HELO yx-out-1718.google.com) (74.125.44.156) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Feb 2009 13:36:49 +0000 Received: by yx-out-1718.google.com with SMTP id 4so147343yxp.82 for ; Thu, 19 Feb 2009 05:36:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=agwb9Q5JyRxfd7UhLPNRSEq5UYbN/qU1XJxR4k1wf7o=; b=nI6+/TJhHMyLsFcoFA4GueTjElWYQzP2z7WbUXsCxivJICDl28/RCpQKA6h+wvGlGz mLwVzKgenjFnMwTTPvxaVM/rXOxbPuFp2lbJzBfs3kKtIyT07p146jiuY0IwgK86DGO6 D7iljQ65GHmP/sQ7l0awun1TnwEvqmLwwsdFI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=SAjiZm6Dnp1wEsaHS9Dh4qJGY118d8NKMmTMNgX3qarta/8knymSEQkVsaCEipO0U3 RzTnWHAbMNgNgOA4ib7kenrLighhNlBMHTh5Gdtdb1WHKZv5KlEr9L18FbVwsAZA9LyL ZQbxoCKRELtCIPEPUhskCz6PLri+NZs7UxaF4= MIME-Version: 1.0 Received: by 10.151.143.3 with SMTP id v3mr263261ybn.13.1235050587877; Thu, 19 Feb 2009 05:36:27 -0800 (PST) In-Reply-To: <7e3605160902190508kaf0db7cv8b9d77384745bba7@mail.gmail.com> References: <3219fff70902180714j21e731bctdd293dfd0d45c690@mail.gmail.com> <5adb61290902180728m36ac7572s265a34454100f890@mail.gmail.com> <3219fff70902190015u77f8ee97m60e87995e504b311@mail.gmail.com> <7e3605160902190508kaf0db7cv8b9d77384745bba7@mail.gmail.com> Date: Thu, 19 Feb 2009 16:36:27 +0300 Message-ID: <3219fff70902190536u8c2125oa49ff05d4819effa@mail.gmail.com> Subject: Re: Boolean comparison in expressions? From: Andrey Razumovsky To: user@cayenne.apache.org Content-Type: multipart/alternative; boundary=00151757080291f17c0463459f5d X-Virus-Checked: Checked by ClamAV on apache.org --00151757080291f17c0463459f5d Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I'd prefer to see some improvements regarding expressions, like this issue or CAY-1105. What do you think? 2009/2/19 Kevin Menard > Interesting. I've only ever used and seen qualifiers used on some > type of text discriminator column. I don't know why it never occurred > to me to try a boolean. > > -- > Kevin > > > > On Thu, Feb 19, 2009 at 3:15 AM, Andrey Razumovsky > wrote: > > Hi Michael! > > > > I don't need a query. I need entity qualifier. In CM this only can be > mapped > > with a string. Currently I solved the problem by manually setting > qualifier > > in code. I think this is a limitation, and I'll open a JIRA if my > suspicions > > will confirm. > > > > 2009/2/18 Michael Gentry > > > >> Well, you can create a query in CM with the magnifying glass icon (or > >> Project -> Create Query menu) and specify it there. You might need to > >> use the underlying data value. For example, I had an isFilled Boolean > >> attribute mapped to an integer database type and in my query I > >> specified "isFilled = 0". I don't think I ever tried "isFilled = > >> false", but I might have to give that one a shot now that you've made > >> me curious. > >> > >> /dev/mrg > >> > >> > >> On Wed, Feb 18, 2009 at 10:14 AM, Andrey Razumovsky > >> wrote: > >> > Hello, > >> > > >> > Can I specify qualifier via string (in Modeler), which checks boolean > >> > attribute, e.g. something like "abort=false" or "!abort" ? > >> > > >> > > > --00151757080291f17c0463459f5d--