Changeset eb5426c for src/main/java/com/example/moviezone/service/Impl
- Timestamp:
- 02/06/23 03:59:41 (22 months ago)
- Branches:
- master
- Children:
- f8ef9bd
- Parents:
- 448bd84
- Location:
- src/main/java/com/example/moviezone/service/Impl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/service/Impl/FilmServiceImpl.java
r448bd84 reb5426c 7 7 8 8 import java.time.LocalDate; 9 import java.util.Collections; 9 10 import java.util.List; 11 import java.util.Optional; 10 12 11 13 @Service … … 26 28 return filmRepository.save(new Film(name,duration,actors,genre,age_category,url,director,start_date,end_date)); 27 29 } 30 31 @Override 32 public Optional<Film> getFilmById(Long id) { 33 return filmRepository.findAllById(Collections.singleton(id.intValue())).stream().findFirst(); 34 } 35 28 36 } -
src/main/java/com/example/moviezone/service/Impl/ProjectionServiceImpl.java
r448bd84 reb5426c 25 25 } 26 26 27 @Override28 public List<Projection> findAllAvailableProjections(LocalDate date) {29 return projectionRepository.findAllByDate_time_startBefore(date);30 }31 27 32 28 @Override
Note:
See TracChangeset
for help on using the changeset viewer.