Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. return transactionService.findAll(page, size)
  2.  
  3.  
  4. public Page<PaymentTransactions> findAll(int page, int size) {
  5. return dao.findAll(PageRequest.of(page,size, new Sort(Sort.Direction.DESC, "createdAt")));
  6. }
  7.  
  8. return transactionService.getAllBySpecification(specification, pageable)
  9.  
  10. @Override
  11. public Page<PaymentTransactions> getAllBySpecification(final Specification<PaymentTransactions> specification, final Pageable pageable) {
  12. return dao.findAll(specification, pageable);
  13. }
  14.  
  15. return dao.findAll(specification, PageRequest.of(page,size, new Sort(Sort.Direction.DESC, "createdAt")));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement