Changeset a554435 for src/main/java/com/example/moviezone/service
- Timestamp:
- 02/04/23 19:55:16 (22 months ago)
- Branches:
- master
- Children:
- 302b233, 4ee640e
- Parents:
- e097c1c
- Location:
- src/main/java/com/example/moviezone/service
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/service/Impl/ProjectionServiceImpl.java
re097c1c ra554435 6 6 import org.springframework.stereotype.Service; 7 7 8 import java.time.LocalDate; 8 9 import java.util.List; 9 10 … … 20 21 return projectionRepository.findAll(); 21 22 } 23 24 @Override 25 public List<Projection> findAllAvailableProjections(LocalDate date) { 26 return projectionRepository.findAllByDate_time_startBefore(date); 27 } 28 22 29 } -
src/main/java/com/example/moviezone/service/ProjectionService.java
re097c1c ra554435 3 3 import com.example.moviezone.model.Projection; 4 4 5 import java.time.LocalDate; 5 6 import java.util.List; 6 7 7 8 public interface ProjectionService { 8 9 List<Projection> findAllProjections(); 10 List<Projection> findAllAvailableProjections(LocalDate date); 11 9 12 }
Note:
See TracChangeset
for help on using the changeset viewer.