Skip to content

Spring Boot 3.2.x with @Audited annotation is causing Hibernate error at application startupΒ #3381

@dietzsch

Description

@dietzsch

Hello,

we recently updated from Spring Boot 3.1.x to 3.2.x. In parallel we are using @Audited and have a dependency:

org.hibernate.orm:hibernate-envers

After the update to the new Spring Boot version we see the following error at startup of the application:

o.h.metamodel.internal.MetadataContext : HHH015007: Illegal argument on static metamodel field injection : org.hibernate.envers.DefaultRevisionEntity_#class_; expected type : org.hibernate.metamodel.model.domain.internal.EntityTypeImpl; encountered type : jakarta.persistence.metamodel.MappedSuperclassType

which seems to be related to the envers dependency. There is also already a thread on Stackoverflow that is discussing this issue:

https://stackoverflow.com/questions/77753483/hibernate-envers-6-4-1-illegal-argument-on-static-metamodel-field-injection

Alex

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: external-projectFor an external project and not something we can fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions