Hi Team,
I am trying to implement Hibernate reverse engineering for entity creation; however, I am encountering an issue where Hibernate is treating UUID as a Serializable object instead of a UUID. Below is my configuration. Could you please assist here?
<plugin>
<groupId>org.hibernate.tool</groupId>
<artifactId>hibernate-tools-maven</artifactId>
<version>6.2.6.Final</version>
<dependencies>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>${postgresql.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>6.2.6.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate.tool</groupId>
<artifactId>hibernate-tools-orm</artifactId>
<version>6.2.6.Final</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>Display Help</id>
<phase>validate</phase>
<goals>
<goal>help</goal>
</goals>
</execution>
<execution>
<id>Schema generation</id>
<phase>generate-resources</phase>
<goals>
<goal>hbm2java</goal>
</goals>
</execution>
</executions>
<configuration>
<outputDirectory>src/main/java</outputDirectory>
<packageName>com.poc.entity</packageName>
<detectOneToOne>true</detectOneToOne>
<detectManyToMany>true</detectManyToMany>
<createCollectionForForeignKey>true</createCollectionForForeignKey>
<createManyToOneForForeignKey>true</createManyToOneForForeignKey>
<ejb3>true</ejb3>
<jdk5>true</jdk5>
<revengFile>${project.basedir}/src/main/resources/hibernate.reveng.xml</revengFile>
<format>true</format>
<!--<delimiter>;</delimiter>
<haltOnError>true</haltOnError>-->
</configuration>
</plugin>