You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Nikita Timofeev (JIRA)" <ji...@apache.org> on 2018/01/22 15:00:04 UTC
[jira] [Created] (CAY-2397) Modeler: Unable to set enum:value as
Entity qualifier
Nikita Timofeev created CAY-2397:
------------------------------------
Summary: 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.1.M1, 4.0.B2
Reporter: Nikita Timofeev
Assignee: Nikita Timofeev
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)