Ignore:
Timestamp:
10/07/21 20:07:41 (3 years ago)
Author:
KostaFortumanov <kfortumanov@…>
Branches:
master
Children:
0c37625
Parents:
0f4f552
Message:

post pagination

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/it/finki/charitable/repository/DonationPostRepository.java

    r0f4f552 r276a8b6  
    44import it.finki.charitable.entities.DonationPost;
    55import it.finki.charitable.entities.Moderator;
     6import org.springframework.data.domain.Page;
     7import org.springframework.data.domain.Pageable;
    68import org.springframework.data.jpa.repository.JpaRepository;
    79import org.springframework.stereotype.Repository;
     
    1416    List<DonationPost> findAllByApproved(Boolean approved);
    1517    List<DonationPost> findAllByModerator(Moderator moderator);
     18    Page<DonationPost> findAllByApproved(Pageable pageable, boolean approved);
    1619}
Note: See TracChangeset for help on using the changeset viewer.