Thank you for your answer. I actually did what you suggested.
And I just found out what the problem was. There was another annotation processor configured, JPAModelEntityProcessor, once I removed it, everything works fine!
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${compiler-plugin.version}</version>
<configuration>
<annotationProcessorPaths>
<annotationProcessorPath>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
<version>6.5.2.Final</version> <!-- This is required even with a BOM! See below -->
</annotationProcessorPath>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
</annotationProcessorPaths>
<!-- <annotationProcessors>-->
<!-- <annotationProcessor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</annotationProcessor>-->
<!-- </annotationProcessors>-->
</configuration>
</plugin>
Op dinsdag 27 augustus 2024 om 10:53:51 UTC+2 schreef GreenEyed: