Hi,I'm using the QueryDslPredicateExecutor findAll(Predicate predicate, Pageable pageable) method in Spring Data in order to support paging.Creating a Predicate is very easy, but restricted (e.g. can not include joins). JPAQuery allows more complex queries, but will not allow me to use the findAll method.Is it possible to convert JPAQuery to Predicate?
Thanks,Asher.
Thanks. Is their a way to call a findAll method that accepts a JPAQuery and a Pagable parameters instead or should I implement this by my self.I have many complex queries that need to support paging.
Thansk,Asher.
On Monday, November 19, 2012 10:35:22 AM UTC+2, Timo Westkämper wrote:Hi.
On Sunday, November 18, 2012 6:03:23 PM UTC+2, Asher Gruber wrote:Hi,I'm using the QueryDslPredicateExecutor findAll(Predicate predicate, Pageable pageable) method in Spring Data in order to support paging.Creating a Predicate is very easy, but restricted (e.g. can not include joins). JPAQuery allows more complex queries, but will not allow me to use the findAll method.Is it possible to convert JPAQuery to Predicate?
I don't think so. For more complex queries you need to create JPAQuery instances.
Br,
Timo
Thanks,Asher.
Hi.