[ 
https://issues.apache.org/jira/browse/CAY-2397?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nikita Timofeev closed CAY-2397.
--------------------------------
    Resolution: Fixed

> Modeler: Unable to set enum:value as Entity qualifier
> -----------------------------------------------------
>
>                 Key: CAY-2397
>                 URL: https://issues.apache.org/jira/browse/CAY-2397
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Modeler
>    Affects Versions: 4.0.B2, 4.1.M1
>            Reporter: Nikita Timofeev
>            Assignee: Nikita Timofeev
>            Priority: Major
>             Fix For: 4.1.M2
>
>
> Modeler fail to parse Entity qualifier like this:
> {{enumAttribute = enum:org.apache.cayenne.testdo.enum_test.Enum1.two}}
> The reason is that parser throws {{ClassNotFoundException}} because Enum 
> class is unknown to the Modeler.
> This can be fixed by some sort of lazy resolving of enum value.
> P.S. For the history: this bug surfaced from other end, e.g. in runtime. New 
> code generated by {{cgen}} in *4.1.M1* throws ClassCastException when trying 
> to provide field of Enum type with initial value base on qualifier expression 
> where String scalar is used. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to