Return-Path: X-Original-To: apmail-cayenne-dev-archive@www.apache.org Delivered-To: apmail-cayenne-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 825BA18025 for ; Sat, 23 May 2015 12:48:17 +0000 (UTC) Received: (qmail 13867 invoked by uid 500); 23 May 2015 12:48:17 -0000 Delivered-To: apmail-cayenne-dev-archive@cayenne.apache.org Received: (qmail 13844 invoked by uid 500); 23 May 2015 12:48:17 -0000 Mailing-List: contact dev-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list dev@cayenne.apache.org Received: (qmail 13833 invoked by uid 99); 23 May 2015 12:48:17 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 May 2015 12:48:17 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 9EF0B181A1D for ; Sat, 23 May 2015 12:48:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.001 X-Spam-Level: * X-Spam-Status: No, score=1.001 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id DyaDUqG4BcUg for ; Sat, 23 May 2015 12:48:05 +0000 (UTC) Received: from smtp4.objectstyle.com (smtp4.objectstyle.com [23.253.156.183]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id F3E65206B0 for ; Sat, 23 May 2015 12:48:04 +0000 (UTC) Received: from [192.168.4.122] (unknown [212.98.191.4]) by smtp4.objectstyle.com (Postfix) with ESMTPSA id 21085CC33D for ; Sat, 23 May 2015 12:47:12 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: [jira] [Updated] (CAY-2013) In-memory evaluation of DB expressions - non-id attributes From: Andrus Adamchik In-Reply-To: Date: Sat, 23 May 2015 15:47:32 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: References: <078AFD58-5AC4-4B8B-97E7-81603CCB79F0@objectstyle.org> To: dev@cayenne.apache.org X-Mailer: Apple Mail (2.2098) done. > On May 22, 2015, at 5:07 PM, John Huss wrote: >=20 > Ok, thanks! >=20 > On Fri, May 22, 2015 at 7:49 AM Andrus Adamchik = > wrote: >=20 >> Sorry, I forgot about CAY-1902 completely. I don't remember anything = these >> days :-/ >>=20 >> My implementation only handles attributes and doesn't handle >> relationships. Yours does. Since I messed it up, let me work on = porting >> your patch to the current master HEAD. I'll try to find time this = weekend >> to do that. >>=20 >> Andrus >>=20 >>=20 >>> On May 22, 2015, at 3:32 PM, John Huss wrote: >>>=20 >>> https://issues.apache.org/jira/browse/CAY-1902 >>> On Fri, May 22, 2015 at 7:25 AM John Huss = wrote: >>>=20 >>>> Could you look at my patch that already does this? >>>> On Fri, May 22, 2015 at 7:23 AM Andrus Adamchik (JIRA) = >>=20 >>>> wrote: >>>>=20 >>>>>=20 >>>>> [ >>>>>=20 >> = https://issues.apache.org/jira/browse/CAY-2013?page=3Dcom.atlassian.jira.p= lugin.system.issuetabpanels:all-tabpanel >>>>> ] >>>>>=20 >>>>> Andrus Adamchik updated CAY-2013: >>>>> --------------------------------- >>>>> Description: This is a minor improvement to Cayenne DB = expressions >>>>> evaluation capabilities. When evaluating a "db:" expression = against a >>>>> Persistent object, something like "db:id" currently returns a = value of >> a PK >>>>> column, but if a DB column name is not a part of the ID (e.g. >> "db:name"), >>>>> it evaluates to NULL. There is a TODO in ASTDbPath to that extent. = So >> let's >>>>> support evaluation of path's corresponding to DbAttributes. = (was: >> This is >>>>> a minor improvement to Cayenne DB expressions evaluation = capabilities. >>>>> Something like "db:id" currently already evaluates to a value of a = PK >>>>> column, but if a DB column name is not a part of the ID (e.g. >> "db:name"), >>>>> it evaluates to NULL. There is a TODO in ASTDbPath to that extent. = So >> let's >>>>> support evaluation of path's corresponding to DbAttributes. ) >>>>>=20 >>>>>> In-memory evaluation of DB expressions - non-id attributes >>>>>> ---------------------------------------------------------- >>>>>>=20 >>>>>> Key: CAY-2013 >>>>>> URL: https://issues.apache.org/jira/browse/CAY-2013 >>>>>> Project: Cayenne >>>>>> Issue Type: Improvement >>>>>> Reporter: Andrus Adamchik >>>>>> Assignee: Andrus Adamchik >>>>>> Priority: Minor >>>>>> Fix For: 4.0.M3 >>>>>>=20 >>>>>>=20 >>>>>> This is a minor improvement to Cayenne DB expressions evaluation >>>>> capabilities. When evaluating a "db:" expression against a = Persistent >>>>> object, something like "db:id" currently returns a value of a PK >> column, >>>>> but if a DB column name is not a part of the ID (e.g. "db:name"), = it >>>>> evaluates to NULL. There is a TODO in ASTDbPath to that extent. So >> let's >>>>> support evaluation of path's corresponding to DbAttributes. >>>>>=20 >>>>>=20 >>>>>=20 >>>>> -- >>>>> This message was sent by Atlassian JIRA >>>>> (v6.3.4#6332) >>>>>=20 >>>>=20 >>=20 >>=20