i'm trying to create a query method on BookmarkRepository to retrieve all bookmarks of a user, like this:
but this error happens:
Page<Bookmark> findByUser(User user, Pageable pageable);
if I do it like this...
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.
everything works fine, but i want paginate the results.
List<Bookmark> findByUser(User user);