This is basically the opposite of this: How to do a paged QueryDSL query with Spring JPA?
This is for a custom query for which i can\'t use any of the findAll() methods.
org.springframework.data.domain.Sort.Order
and com.querydsl.core.types.Order
and are so similar, yet there is no straightforward conversion between the two. This is somewhat improved version of frozenfury answer:
PathBuilder entityPath = new PathBuilder<>(Entity.class, "entity");
for (Order order : pageable.getSort()) {
PathBuilder