I am using the link below for byte enhancement:
https://vladmihalcea.com/hibernate-4-bytecode-enhancement/
I used Maven hibernate plugin – Enhance
<build>
<plugins>
<plugin>
<groupId>org.hibernate.orm.tooling</groupId>
<artifactId>hibernate-enhance-maven-plugin</artifactId>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>enhance</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
I have the following error below:
Failed to execute goal org.hibernate.orm.tooling:hibernate-enhance-maven-plugin:5.2.9.Final:enhance (default) on project MavenHibernateExample: Execution default of goal org.hibernate.orm.tooling:hibernate-enhance-maven-plugin:5.2.9.Final:enhance failed: Unable to load the mojo 'enhance' in the plugin 'org.hibernate.orm.tooling:hibernate-enhance-maven-plugin:5.2.9.Final' due to an API incompatibility:
org.codehaus.plexus.component.repository.exception.ComponentLookupException: org/hibernate/orm/tooling/maven/MavenEnhancePlugin : Unsupported major.minor version 52.0
I took a look at the generated classes but the classes are the same as input - nothing is transient or modified. I am not sure what is going on here. I searched across the web but no luck. does anyone know?