Last change
on this file was ee0e297, checked in by KostaFortumanov <kfortumanov@…>, 3 years ago |
bug fix
|
-
Property mode
set to
100644
|
File size:
786 bytes
|
Line | |
---|
1 | package it.finki.charitable.repository;
|
---|
2 |
|
---|
3 | import it.finki.charitable.entities.AppUser;
|
---|
4 | import it.finki.charitable.entities.DonationPost;
|
---|
5 | import it.finki.charitable.entities.Moderator;
|
---|
6 | import org.springframework.data.domain.Page;
|
---|
7 | import org.springframework.data.domain.Pageable;
|
---|
8 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
9 | import org.springframework.stereotype.Repository;
|
---|
10 |
|
---|
11 | import java.util.List;
|
---|
12 |
|
---|
13 | @Repository
|
---|
14 | public interface DonationPostRepository extends JpaRepository<DonationPost, Long> {
|
---|
15 | List<DonationPost> findAllByUser(AppUser user);
|
---|
16 | List<DonationPost> findAllByApproved(Boolean approved);
|
---|
17 | Page<DonationPost> findAllByModerator(Pageable pageable, Moderator moderator);
|
---|
18 | Page<DonationPost> findAllByApproved(Pageable pageable, boolean approved);
|
---|
19 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.