Type
is the Hibernate Type. In addition to that trying adding sqlType
which as the name implies is the underlying SQL column type.
static mapping = {
col1 type: GormEncryptedStringType, sqlType:'TEXT'
}
Also, depending on your 'sql type', you can also add length
to change your column size
static mapping = {
col1 type: GormEncryptedStringType, sqlType:'varchar', length:400
}