GORM: how to set value data type on map

in my domain object I have a map:

Map<String, String> stuff

GORM automatically creates a table where the key and value are varchar (255) .

I need a LongText value . How should I do it?

Also, is there a workaround for this that doesn't include using the hibernate configuration?

+5
source share
3 answers

I am only afraid through the Hibernate XML config and pointingkey for stuff.

+2
source

I think you can declare this parameter in closing display of your domain class.

, MySQL TEXT:

static mapping = {
   myTextField type: 'text'
}

, : Grails (5.5.2.1 )

+3

, , , Hibernate . Liquibase, , Grails plug in . , , ​​Grails 1.4, - .

0

All Articles