cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrei Veprev (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CAY-1213) Cayenne should support enum types in qualifier statements/expression handling
Date Fri, 17 Sep 2010 08:22:33 GMT

     [ 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.


Mime
View raw message