title: How to use Q Classes of Querydsl?
body: <p>I want to use <strong>QueryDSL</strong> with <strong>JPA</strong> and I plugged in <strong>apt-maven</strong> successfully.</p>
  
  <p><strong>Pom.xml;</strong></p>
  
  <pre><code>     &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.8&lt;/source&gt;
                      &lt;target&gt;1.8&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;com.mysema.maven&lt;/groupId&gt;
                  &lt;artifactId&gt;apt-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;1.1.3&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;process&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;outputDirectory&gt;target/generated-sources/java&lt;/outputDirectory&gt;
                              &lt;processor&gt;com.querydsl.apt.jpa.JPAAnnotationProcessor &lt;/processor&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  </code></pre>
  
  <p>Also it generated the Q classes of domain classess successfully too but when I  <code>import com.buraku.netas.domain.QUser;</code> , it throws an error and can't find Q classes.</p>
  
  <p>Here's how my folder structure looks like after I run <strong>mvn install</strong>;</p>
  
  <p><a href="https://i.stack.imgur.com/n5Mlz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n5Mlz.png" alt="enter image description here"></a></p>
  
  <p>As you see Q classes are generated but what else should I do to use them?</p>