Last change
on this file since 0f3491d was 0f3491d, checked in by makyjovanovsky <mjovanovski04@…>, 17 months ago |
reservation
|
-
Property mode
set to
100644
|
File size:
751 bytes
|
Rev | Line | |
---|
[0f3491d] | 1 | package com.example.salonbella.repository;
|
---|
| 2 |
|
---|
| 3 | import com.example.salonbella.entity.ReservationEntity;
|
---|
| 4 | import com.example.salonbella.entity.UserEntity;
|
---|
| 5 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
| 6 | import org.springframework.stereotype.Repository;
|
---|
| 7 |
|
---|
| 8 | import java.time.LocalDateTime;
|
---|
| 9 | import java.util.List;
|
---|
| 10 |
|
---|
| 11 | @Repository
|
---|
| 12 | public interface ReservationRepository extends JpaRepository<ReservationEntity, Long> {
|
---|
| 13 | List<ReservationEntity> findByTypeAndDateTimeBetween(String type,LocalDateTime start, LocalDateTime end);
|
---|
| 14 |
|
---|
| 15 | List<ReservationEntity> findAllByUser(UserEntity user);
|
---|
| 16 |
|
---|
| 17 | List<ReservationEntity> findAllByValid(boolean valid);
|
---|
| 18 |
|
---|
| 19 | ReservationEntity findReservationEntityByDateTimeAndType(LocalDateTime dateTime, String type);
|
---|
| 20 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.