Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
10.0
-
None
-
None
Description
I have a Maven project that uses Hibernate's metamodel processor to generate metamodel classes used in JPA Criteria Queries. The sources are generated, and visible in the "Generated Sources (annotations)" branch in my project tree, but show-up as errors when used in the source files.
Easy way to apply the generator in maven the way I do it:
<properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.compilerArguments.processor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</maven.compiler.compilerArguments.processor> <maven.install.skip>true</maven.install.skip> <maven.deploy.skip>true</maven.deploy.skip> <hibernate.version>5.2.14.Final</hibernate.version> </properties>