Last change
on this file since 4d7e387 was 4d7e387, checked in by makyjovanovsky <mjovanovski04@…>, 18 months ago |
commit 1
|
-
Property mode
set to
100644
|
File size:
751 bytes
|
Line | |
---|
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.