diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 56469897..f06a2598 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -44,6 +44,8 @@ jobs:
# gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
- name: Build
run: ./mvnw -B -q -ff -ntp verify
+ - name: Build With Enhancement
+ run: ./mvnw -Penhanced -B -q -ff -ntp verify
- name: Extract project Maven version
id: projectVersion
run: echo "version=$(./mvnw org.apache.maven.plugins:maven-help-plugin:3.3.0:evaluate -DforceStdout -Dexpression=project.version -q)" >>$GITHUB_OUTPUT
diff --git a/hibernate5/pom.xml b/hibernate5/pom.xml
index dc2382e8..5e4ea6bc 100644
--- a/hibernate5/pom.xml
+++ b/hibernate5/pom.xml
@@ -117,4 +117,37 @@ Hibernate (https://hibernate.org) version 5.x data types.
+
+
+
+ enhanced
+
+
+
+ org.hibernate.orm.tooling
+ hibernate-enhance-maven-plugin
+ 5.3.20.Final
+
+
+ enhance
+ test-compile
+
+ enhance
+
+
+ ${build.testOutputDirectory}
+ ${build.testOutputDirectory}
+ true
+ true
+ true
+ true
+ false
+
+
+
+
+
+
+
+
diff --git a/hibernate6/pom.xml b/hibernate6/pom.xml
index b418024f..c79a0212 100644
--- a/hibernate6/pom.xml
+++ b/hibernate6/pom.xml
@@ -94,4 +94,37 @@ Hibernate (https://hibernate.org/) version 6.x with Jakarta data types.
+
+
+
+ enhanced
+
+
+
+ org.hibernate.orm.tooling
+ hibernate-enhance-maven-plugin
+ ${hibernate.version}
+
+
+ enhance
+ test-compile
+
+ enhance
+
+
+ ${build.testOutputDirectory}
+ ${build.testOutputDirectory}
+ true
+ true
+ true
+ true
+ false
+
+
+
+
+
+
+
+