Isaac Hudson
01/22/2025, 11:46 PMCaused by: java.lang.NullPointerException: Cannot invoke "org.hibernate.engine.OptimisticLockStyle.isAllOrDirty()" because "this.optimisticLockStyle" is nullIsaac Hudson
01/22/2025, 11:53 PMgiangio
01/24/2025, 11:23 AMdependencies section? https://start.grails.org/Isaac Hudson
01/24/2025, 4:34 PMversion that wasn't actually a hibernate version. This worked fine on grails 3 and older hibernate but not after upgrading (currently working through issues with upgrade).
Renaming the variable to vers and using a mapping like this fixed it:
static mapping = {
version false
vers column: 'version'
}