title: How to execute a JPAQuery with pagination using Spring Data and QueryDSL
body: <p>I have this request working good with <code>queryDSL</code> :  </p>
  
  <pre><code> Iterable&lt;AO&gt; query_result = new JPAQuery(entityManager).from(ao)
              .leftJoin( ao.lots , lot )
              .leftJoin( ao.acs , ac )
                .where(where).distinct()
                  .list(ao);
  </code></pre>
  
  <p>But what is its equivalent if we use it with <code>spring data jpa</code></p>
  
  <pre><code>ao_respository.findAll(Predicate arg0, Pageable arg1);
  </code></pre>
  
  <p>Because i want to return a <code>Page</code> and just with <code>querydsl</code> it doesn't implement <code>Page</code> without <code>spring data jpa</code>.</p>
  
  <p>I try to put my <code>where</code> in <code>Predicate arg0</code> but i got this exception</p>
  
  <pre><code>Undeclared path 'lot '. Add this path as a source to the query to be able to reference it
  </code></pre>
  
  <p>where <code>lot</code> is declared as <code>QLot lot = QLot.lot;</code> </p>