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.
- relates to
CAY-2399 Convert string values to Enum in qualifiers