I generate My Qclasses in target/generated-sources/java
and the Qclasses are generating good but when i want to use them in my src code /YY/src/controller/XXX.java
for example like that
QLot lot = QLot.lot;
I get QLot cannot be resolved to a variable
. It seems that the generated Qclasses are not in the classpath !!
<plugin>
<groupId>com.mysema.maven</groupId>
<artifactId>apt-maven-plugin</artifactId>
<version>1.0.6</version>
<executions>
<execution>
<goals>
<goal>process</goal>
</goals>
<configuration>
<outputDirectory>target/generated-sources/java</outputDirectory>
<processor>com.mysema.query.apt.jpa.JPAAnnotationProcessor</processor>
</configuration>
</execution>
</executions>
</plugin>