I was wondering if is possible to execute jpql query by a spring jpa repository and be able to use paging as sort feature as it can be donde with Example and Specification. I would like to do something like:
findAll(String jpql, Pageable pageable)
QueryByExampleExecutor interface i.e. declare:
findAll(Example<S> example, Pageable pageable);
JpaSpecificationExecutor interface declare:
Page<T> findAll(Specification<T> spec, Pageable pageable);