Skip to content

Commit 20a2984

Browse files
committed
HHH-19814: Document the Enhance Plugin changes in the Migration Guide
Signed-off-by: Koen Aers <[email protected]>
1 parent 1eb80e0 commit 20a2984

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

migration-guide.adoc

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,3 +789,33 @@ We recommend using https://github.com/agroal/agroal[Agroal] or https://github.co
789789
Alternatively, you may implement the `ConnectionProvider` interface to integrate the connection pool of your choice.
790790
In fact, some connection pools already include their own implementations of `ConnectionProvider`.
791791

792+
[[maven-plugin-changes]]
793+
== Changes to the Maven Plugin
794+
795+
The Maven bytecode enhancement plugin has been completely rewritten since version 7.0. The change that has the
796+
biggest consequence is that the artifactId and groupId of the Maven artifact have changed. As of now, you will
797+
need to include the plugin in the build section in your Maven pom file as illustrated below.
798+
799+
```
800+
<plugin>
801+
<groupId>org.hibernate.orm</groupId>
802+
<artifactId>hibernate-maven-plugin</artifactId>
803+
<version>$currentHibernateVersion</version>
804+
<executions>
805+
<execution>
806+
<configuration>
807+
<enableLazyInitialization>true</enableLazyInitialization>
808+
<enableDirtyTracking>true</enableDirtyTracking>
809+
</configuration>
810+
<goals>
811+
<goal>enhance</goal>
812+
</goals>
813+
</execution>
814+
</executions>
815+
</plugin>
816+
```
817+
818+
Also, because of a regression and in contrast with the corresponding Ant task and Gradle plugin, the default values
819+
of the `enableLazyInitialization` and `enableDirtyTracking` are set to `false` while it used to be `true`. This is fixed in Hibernate ORM 7.1.
820+
821+
The documentation in the userguide has been rewritten accordingly and completed with more examples.

0 commit comments

Comments
 (0)