The following grails domain class:
class MyClass { Map myMap }
Now for myMap grails automatically creates a new table for elements on the map. However, if I add elements that are too long (for example, 1024 characters), I get a DB error.
Can I somehow tell grails to make the corresponding column in the myMap table large enough to allow large rows, or do I need to do this manually in the database?
I have already tried
static constraints = { myMap(maxSize:1024) }
which does not work (as expected, since maxSize should refer to the values ββof the map and not to the map itself).
If not through restrictions, there may be a way to do this through
static mapping { ... }
?
source share