Scott Marlow (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNjQ1NWQ3YjY2...
) / Improvement (
https://hibernate.atlassian.net/browse/HHH-16529?atlOrigin=eyJpIjoiNjQ1NW...
) HHH-16529 (
https://hibernate.atlassian.net/browse/HHH-16529?atlOrigin=eyJpIjoiNjQ1NW...
) Consider adding validation that the
org.hibernate.bytecode.enhance.spi.EnhancementInfo#version matches the Hibernate version
being used... (
https://hibernate.atlassian.net/browse/HHH-16529?atlOrigin=eyJpIjoiNjQ1NW...
)
Issue Type: Improvement Affects Versions: 6.2.1 Assignee: Unassigned Components:
bytecode-enhancement, hibernate-core Created: 27/Apr/2023 10:18 AM Priority: Major
Reporter: Scott Marlow (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
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_Hiber...
(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.
(
https://hibernate.atlassian.net/browse/HHH-16529#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16529#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100223- sha1:02266b8 )