Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
33 changes: 33 additions & 0 deletions hibernate5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,37 @@ Hibernate (https://hibernate.org) version 5.x data types.
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>enhanced</id>
<build>
<plugins>
<plugin>
<groupId>org.hibernate.orm.tooling</groupId>
<artifactId>hibernate-enhance-maven-plugin</artifactId>
<version>5.3.20.Final</version>
<executions>
<execution>
<id>enhance</id>
<phase>test-compile</phase>
<goals>
<goal>enhance</goal>
</goals>
<configuration>
<base>${build.testOutputDirectory}</base>
<dir>${build.testOutputDirectory}</dir>
<failOnError>true</failOnError>
<enableLazyInitialization>true</enableLazyInitialization>
<enableDirtyTracking>true</enableDirtyTracking>
<enableAssociationManagement>true</enableAssociationManagement>
<enableExtendedEnhancement>false</enableExtendedEnhancement>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
33 changes: 33 additions & 0 deletions hibernate6/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,37 @@ Hibernate (https://hibernate.org/) version 6.x with Jakarta data types.
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>enhanced</id>
<build>
<plugins>
<plugin>
<groupId>org.hibernate.orm.tooling</groupId>
<artifactId>hibernate-enhance-maven-plugin</artifactId>
<version>${hibernate.version}</version>
<executions>
<execution>
<id>enhance</id>
<phase>test-compile</phase>
<goals>
<goal>enhance</goal>
</goals>
<configuration>
<base>${build.testOutputDirectory}</base>
<dir>${build.testOutputDirectory}</dir>
<failOnError>true</failOnError>
<enableLazyInitialization>true</enableLazyInitialization>
<enableDirtyTracking>true</enableDirtyTracking>
<enableAssociationManagement>true</enableAssociationManagement>
<enableExtendedEnhancement>false</enableExtendedEnhancement>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Loading