i'm trying to create a query method on BookmarkRepository to retrieve all bookmarks of a user, like this:
Code:
Page<Bookmark> findByUser(User user, Pageable pageable);
but this error happens:
Code:
Could not create query for public abstract org.springframework.data.domain.Page br.com.webbook.repositories.BookmarkRepository.findByUser_UserName(java.lang.String,org.springframework.data.domain.Pageable)! Reason: Your persistence provider does not support extracting the JPQL query from a named query thus you can't use Pageable inside your query method. Make sure you have a JpaDialect configured at your EntityManagerFactoryBean as this affects discovering the concrete persistence provider.
if I do it like this...
Code:
List<Bookmark> findByUser(User user);
everything works fine, but i want paginate the results.