This issue is for requesting an enhancement to add validation of the EnhancementInfo.version() against the version of Hibernate ORM being used. I build-time-enhanced the https://github.com/scottmarlow/quickstart/tree/EAP7-1648_build-time_Hibernate_entity_enhancement (quickstart/hibernate) application with Hibernate ORM 6.2.0.Final and then deployed (mvn clean verify wildfly:deploy) the application on WildFly with TRACE logging enabled for “org.hibernate” + “org.jboss.as.jpa“ which shows the following: TRACE [org.jboss.as.jpa] (MSC service thread 1-3) rewrite entity class 'org/jboss/as/quickstart/hibernate/model/Member' using transformer 'org.hibernate.jpa.internal.enhance.EnhancingClassTransformerImpl' for 'hibernate.war#prima ry' DEBUG [org.hibernate.bytecode.enhance.spi.Enhancer] (MSC service thread 1-3) Skipping enhancement of [org.jboss.as.quickstart.hibernate.model.Member]: already enhanced Since the build of WildFly that I used contains Hibernate ORM 6.2.1.Final, I expected to see an exception thrown (perhaps after the already enhanced message is logged) but I forget why I expected that to be done already. |