title: How to do a paged QueryDSL query with Spring JPA?
body: <p>QueryDSL defines an <code>OrderSpecifier</code> interface and an instance for that can be easily obtained for any field by calling <code>asc()</code> or <code>desc()</code>. The <code>QueryDslPredicateExecutor</code> interface of Spring Data JPA even has a <code>findAll()</code> method which takes <code>OrderSpecifier</code>s as parameters. </p>
  
  <p><code>org.springframework.data.domain.PageRequest</code> however doesn't know anything about QueryDSL and it has its own way for defining query sort order, namely <code>org.springframework.data.domain.Sort</code>. It can contain a number of <code>org.springframework.data.domain.Sort.Order</code>s which are a lot like <code>OrderSpecifier</code>s, except that they are not type safe etc.</p>
  
  <p>So, if I want to make paged query which uses sorting, is there really no way of using QueryDSL for defining that?</p>