các bác cho em hỏi trong spring boot có hàm CassandraRepository<> nhưng em muốn phân trang thì làm thế nào ạ , nhưng em muốn thêm 1 điệu kiện nữa search all khác 1 giá trị nữa ạ
Hỏi về paging in spring boot
có ai biết k ạ
Bạn thử class QueryDslPredicateExecutor<T> xem. Mình chưa làm với Cassandra bao giờ.
public interface UserRepository extends PagingAndSortingRepository<User, Long>, QueryDslPredicateExecutor<User> {
public List<User> findAll(Predicate predicate);
}
1 Like