Grails allows to define custom UserType to properties like in regular Hibernate, by specifying them next to properties in domain objects, like:
But after migrating to Grails 2.2, these stopped working and Grails started to treat them as plain objects (enumerations in my particular case). Fortunately, this was easy to fix by defining all custom user types in Config.groovy, like:
This also defines mapping for all properties of specific type, so no need to do it in every domain class.
someproperty type: MyUserType
But after migrating to Grails 2.2, these stopped working and Grails started to treat them as plain objects (enumerations in my particular case). Fortunately, this was easy to fix by defining all custom user types in Config.groovy, like:
grails.gorm.default.mapping = {
'myproperty-type'(type: my.org.MyUserType, class: my.org.MyEnum)
}
This also defines mapping for all properties of specific type, so no need to do it in every domain class.
The King Casino - Atlantic City, NJ | Jancasino
ReplyDeleteCome on in the King 토토 사이트 Casino for fun, casinosites.one no wagering requirements, jancasino.com delicious dining, and enjoyable casino gaming all at the heart of Atlantic https://jancasino.com/review/merit-casino/ City. apr casino