Details
-
Type:
Sub-task
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0.3
-
Fix Version/s: 1.1-beta1
-
Component/s: Persistence
-
Labels:None
Description
Currently GORM maps enums to the ordinal value by default. It would be more save to use the string value instead. A least it should be possible to change GRAILS default behavior.
Please check the discussion on the mailing list:
http://www.nabble.com/are-new-Enums-in-gorm-safe--td17699283.html
For the record, I saw on the Hibernate forums that the JPA spec. requires that the ordinal is used by default, so that's why Hibernate uses it as a default.