Last change
on this file since 77205be was 77205be, checked in by gjoko kostadinov <gjokokostadinov@…>, 6 months ago |
Add entire code
|
-
Property mode
set to
100644
|
File size:
441 bytes
|
Rev | Line | |
---|
[77205be] | 1 | package edu.gjoko.schedlr.repositories;
|
---|
| 2 |
|
---|
| 3 | import edu.gjoko.schedlr.entity.Review;
|
---|
| 4 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
| 5 | import org.springframework.stereotype.Repository;
|
---|
| 6 |
|
---|
| 7 | import java.util.List;
|
---|
| 8 |
|
---|
| 9 | @Repository
|
---|
| 10 | public interface ReviewRepository extends JpaRepository<Review, Long> {
|
---|
| 11 |
|
---|
| 12 |
|
---|
| 13 | List<Review> findAllByAppointment_Customer_Id(Long customerId);
|
---|
| 14 |
|
---|
| 15 | List<Review> findAllByAppointment_Service_Id(Long serviceId);
|
---|
| 16 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.