user
04/29/2026, 7:02 PMint[] sqlTypes() to int getSqlType() and similarly the signature (in particular the parameters) of the nullSafeGet method has changed.
In grails 6 we had the following in our build.gradle, which if I understand correctly, allowed us to use envers with the version of hibernate-core that was in gorm for hibernate 5 that we we were using. But this no longer works now that there are breaking changes between the versions used in each case.
api ("org.hibernate:hibernate-envers") {
exclude module: 'hibernate-core'
exclude module: 'hibernate-entitymanager'
}
Below is an excerpt from a stack trace where it seems to be resolving to the hibernate 5 version of UserType when the hibernate 6 version is expected. Is there anything we can do about this? Or what steps can we take to figure out a solution for this?
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.grails.orm.hibernate.HibernateDatastore]: Constructor threw exception
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:223)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:146)
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:318)
... 106 common frames omitted
Caused by: java.lang.AbstractMethodError: Receiver class org.hibernate.envers.internal.entities.RevisionTypeType does not define or inherit an implementation of the resolved method 'abstract int[] sqlTypes()' of interface org.hibernate.usertype.UserTypejdaugherty
04/29/2026, 7:06 PMuser
04/29/2026, 7:13 PMjdaugherty
04/29/2026, 7:20 PMuser
04/29/2026, 7:31 PMjdaugherty
04/29/2026, 8:09 PMuser
04/30/2026, 1:38 PM