8 Ocak 2023 Pazar

hibernate-enhance plugin

Giriş
Native derleme için gerekir. Graalvm ile birlikte kullanılır

Örnek
Şöyle yaparız
<plugin>
  <groupId>org.hibernate.orm.tooling</groupId>
  <artifactId>hibernate-enhance-maven-plugin</artifactId>
  <version>${hibernate.version}</version>
  <executions>
    <execution>
      <id>enhance</id>
      <goals>
        <goal>enhance</goal>
      </goals>
      <configuration>
        <enableLazyInitialization>true</enableLazyInitialization>
	<enableDirtyTracking>true</enableDirtyTracking>
	<enableAssociationManagement>true</enableAssociationManagement>
      </configuration>
    </execution>
  </executions>
</plugin>

Hiç yorum yok:

Yorum Gönder

Local Snapshot Kullanmak

Örnek Şöyle yaparız <repository> <id>snapshot-repository</id> <name>Maven2 Snapshot Repository</name> &l...