title: Query DSL Q type classes not generated
body: <p>I am trying to use QueryDSL in my eclipse maven project. These are the dependencies.</p>
  
  <pre><code>&lt;properties&gt;
          &lt;!-- The main class to start by executing java -jar --&gt;
          &lt;start-class&gt;my.app.market.DBApp&lt;/start-class&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;maven.compiler.source&gt;1.8&lt;/maven.compiler.source&gt;
          &lt;maven.compiler.target&gt;1.8&lt;/maven.compiler.target&gt;
          &lt;querydsl.version&gt;4.1.4&lt;/querydsl.version&gt;
          &lt;apt-maven-plugin.version&gt;1.1.3&lt;/apt-maven-plugin.version&gt;
  
  &lt;/properties&gt;
  
  &lt;dependency&gt;
              &lt;groupId&gt;com.querydsl&lt;/groupId&gt;
              &lt;artifactId&gt;querydsl-apt&lt;/artifactId&gt;
              &lt;version&gt;4.1.4&lt;/version&gt;
              &lt;scope&gt;provided&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.querydsl&lt;/groupId&gt;
              &lt;artifactId&gt;querydsl-jpa&lt;/artifactId&gt;
              &lt;version&gt;4.1.4&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
              &lt;version&gt;1.6.1&lt;/version&gt;
          &lt;/dependency&gt;
  
  &lt;build&gt;
          &lt;plugins&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&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>After this I try to write the queries.</p>
  
  <pre><code>@Repository
  public class QueryDSLRepo {
  
      @PersistenceContext
      private EntityManager em;
  
      public ReportingParamDAO save(final ReportingParamDAO reportingParamDAO) {
          em.persist(reportingParamDAO);
          return reportingParamDAO;
      }
  
      public List&lt;ReportingParamDAO&gt; findreportingParamDAOsByIdQueryDSL(final Integer id) {
          final JPAQuery&lt;ReportingParamDAO&gt; query = new JPAQuery&lt;&gt;(em);
          final QReportingParamDAO reportingParamDAO = QReportingParamDAO.reportingParamDAO;
  
          return query.from(reportingParamDAO).where(reportingParamDAO.id.eq(id)).fetch();
      }
  
  
  }
  </code></pre>
  
  <p>But I get the error</p>
  
  <pre><code>QReportingParamDAO cannot be resolved to a type
  </code></pre>
  
  <p>Note: <code>ReportingParamDAO</code> is an entity class.</p>
  
  <p>This means that the Q type class for my DAO is not generated. I am not sure why it wasn't generated. Do I need to do something else? I came across <a href="https://stackoverflow.com/questions/36086193/querydsl-error-q-classes-not-generated">this</a> post but the user is working on <code>IntelliJ</code> and I can't seem to make it work in my case. Can someone please help me. Thanks !!</p>