Return-Path: Delivered-To: apmail-cayenne-commits-archive@www.apache.org Received: (qmail 56777 invoked from network); 17 Sep 2010 08:23:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Sep 2010 08:23:14 -0000 Received: (qmail 68644 invoked by uid 500); 17 Sep 2010 08:23:14 -0000 Delivered-To: apmail-cayenne-commits-archive@cayenne.apache.org Received: (qmail 68385 invoked by uid 500); 17 Sep 2010 08:23:13 -0000 Mailing-List: contact commits-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 commits@cayenne.apache.org Received: (qmail 68376 invoked by uid 99); 17 Sep 2010 08:23:12 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Sep 2010 08:23:12 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Sep 2010 08:22:55 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8H8MXtC010296 for ; Fri, 17 Sep 2010 08:22:34 GMT Message-ID: <13333123.247761284711753747.JavaMail.jira@thor> Date: Fri, 17 Sep 2010 04:22:33 -0400 (EDT) From: "Andrei Veprev (JIRA)" To: commits@cayenne.apache.org Subject: [jira] Updated: (CAY-1213) Cayenne should support enum types in qualifier statements/expression handling In-Reply-To: <327931302.1240591470319.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CAY-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrei Veprev updated CAY-1213: ------------------------------- Attachment: CAY-1213.patch Here is the patch that implements enum and constant (static final) values in expressions. To specify const value in expression user have to provide full path to it: some.package.Type.CONSTANT. This patch doesn't implement such functionality for EJBQL. There is problem with null values: in case if constant value is null wrong qualifier is generated for SQL statement (such as "someField = NULL" instead of "someField IS NULL"). > Cayenne should support enum types in qualifier statements/expression handling > ----------------------------------------------------------------------------- > > Key: CAY-1213 > URL: https://issues.apache.org/jira/browse/CAY-1213 > Project: Cayenne > Issue Type: Improvement > Components: Core Library > Affects Versions: 3.0M5 > Reporter: Robert Zeigler > Assignee: Andrus Adamchik > Fix For: Undefined future > > Attachments: CAY-1213.patch > > > Currently, cayenne doesn't support java enums in its expression syntax and, by extension, in qualifier statements. This makes it impossible to use an enum type as a class descriminator for inheritance. > Enum expressions would look like: > propertyName = some.package.Type.CONSTANT > to make it consistent with JPA. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.