Trying to upgrade from 5.3.7 to 5.4 I've ran into a regression that seems to be caused by the change from HHH-12653 Open . I'm using the Log4j JPA appender and that triggers the exception:
org.hibernate.AnnotationException: An entity cannot be annotated with both @Inheritance and @MappedSuperclass: org.apache.logging.log4j.core.appender.db.jpa.AbstractLogEventWrapperEntity
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:539)
at org.hibernate.boot.model.source.internal.annotations.AnnotationMetadataSourceProcessorImpl.processEntityHierarchies(AnnotationMetadataSourceProcessorImpl.java:254)
at org.hibernate.boot.model.process.spi.MetadataBuildingProcess$1.processEntityHierarchies(MetadataBuildingProcess.java:230)
at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:273)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:903)
at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:934)
at org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:56)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:79)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:54)