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