Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

NPE at startup with Hibernate 5.4.29 and "version false" domain classes #270

@alanwilkie-finocomp

Description

@alanwilkie-finocomp

Hibernate has made a change between 5.4.28 and 5.4.29 that adds some convenience methods to the OptimisticLockingStyle enum. Consequently, it expects that the optimistic locking style for each entity is always set to a proper value. GrailsDomainBinder currently only calls setOptimisticLockingStyle if the domain class has a version property.

It's arguable whether it's a GORM issue or a Hibernate issue (it seems a bit rough to make a breaking change to the behaviour in a 0.0.1 release), but it's not too hard to fix in GORM.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions