I am using the hibernate-jpamodelgen
processor to generate JPA metamodel files in my project. During the build process, warnings are generated for @see
comments in the generated code, referencing private fields in the entity classes. Below is an example:
/**
* @see com.example.MyEntity#privateField
**/
public static volatile SingularAttribute<MyEntity, SomeType> privateField_;
This causes warnings during the build, as the private field is inaccessible. These warnings pollute the logs and can lead to unnecessary noise in CI/CD pipelines.
Request: Please provide a way to:
- Suppress or exclude comments in the generated files.
- Configure the generated comments to avoid referencing private fields.
Environment:
- Hibernate JPAModelGen version:
6.5.2.Final
- Java version:
21
- Build tool: Maven