@Audited
class Data {
Blob data
}
org.hibernate.MappingException : Type not supported for auditing: org.hibernate.type.BlobType, on entity Data, property 'data'.
What is the solution? Envers does not throw an exception for a Byte Array, so replace Blob with it. However, MySQL will map the Byte Array to a TinyBlob, which may not work for you. You can modify this by updating the GORM DSL on the domain.
@Audited
class Data {
byte[] data
static mapping = {
data sqlType: 'blob'
}
}
This resolved the problem for us.