- Timestamp:
- 02/06/23 03:59:41 (22 months ago)
- Branches:
- master
- Children:
- f8ef9bd
- Parents:
- 448bd84
- File:
-
- 1 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 }
Note:
See TracChangeset
for help on using the changeset viewer.