-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
---
-
---
Expected:
- Define an enum with explicit integer constants.
ie. enum Stage { Entered(1); int value; public Stage(int value) { this.value = value }... }
- Add an {enum}Convertor java class decoratored with @Convertor for the enum and autoApply=true.
- Use the enum as part of an @IdClass for a composite key.
- I'd expect the stage column to store the value 1 in the database for Stage.Entered.
Actual Result:
- The first ordinal enum value is given value 0 because it is the first enum constant.
Other Observations:
- This works fine if it is just a regular old column and not part of a compose key.