I'm having issues with findAll method which I am overriding from JpaSpecificationExecutor
@Repository
public interface UserRepository extends JpaRepository<User, Long>, JpaSpecificationExecutor<User> {
@Query(value = "select distinct user from User user left join fetch user.shopList shopList",
countQuery = "select count(distinct user) from User user")
Page<User> findAll(Specification specification, Pageable pageable);
}
I get "firstResult/maxResults specified with collection fetch. In memory pagination was about to be applied" error. It's like it's not using Pageable object at all.