Yordan Gigov created NETBEANS-2339:
--------------------------------------

             Summary: Cannot find symbol for generated sources
                 Key: NETBEANS-2339
                 URL: https://issues.apache.org/jira/browse/NETBEANS-2339
             Project: NetBeans
          Issue Type: Bug
          Components: java - Classpath, java - Compiler, java - Editor
    Affects Versions: 10.0
            Reporter: Yordan Gigov


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:
{code:java}
    <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>{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to