You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With grails 3.2 following code works well, but with grails 3.3 it use enum names during saving to DB
class Test {
Set<TestEnum> enums
static mapping {
enums enumType: 'identity' // not works
}
}
enum TestEnum {
final int id
TestEnum(int value){
...
}
}
Operating System: TODO
GORM Version: 6.1.9
Grails Version (if using Grails): 3.3.5
JDK Version: TODO
Example Application
TODO: link to github repository with example that reproduces the issue
The text was updated successfully, but these errors were encountered:
Task List
Steps to Reproduce
In grails 3.3 currently impossible to define enumType for a collection of enums. It works only for a separate field:
https://docs.grails.org/latest/ref/Database%20Mapping/column.html
@jameskleeh wrote: I don't think this is possible currently
https://stackoverflow.com/questions/50210992/grails-3-enumtype-for-set-of-enums?noredirect=1#comment87450991_50210992
With grails 3.2 following code works well, but with grails 3.3 it use enum names during saving to DB
Example Application
The text was updated successfully, but these errors were encountered: