Changeset 632e3d8 for src/main/java/com/example/moviezone/service/Impl
- Timestamp:
- 02/08/23 14:41:27 (22 months ago)
- Branches:
- master
- Children:
- 2c7a732
- Parents:
- 39a45e6 (diff), 90317ea (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- src/main/java/com/example/moviezone/service/Impl
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/service/Impl/EventServiceImpl.java
r39a45e6 r632e3d8 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 eventRepository.save(new Event(theme,duration,repeating,start_date,img_url)); 27 29 } 30 31 @Override 32 public List<Event> getEventsNow() { 33 return eventRepository.getFilmsFromCinemaNow(); 34 } 35 36 @Override 37 public List<Event> getEventsFromCinema(int id) { 38 return eventRepository.getFilmsFromCinema(id); 39 } 40 41 @Override 42 public Optional<Event> getEventById(Long id) { 43 return eventRepository.findAllById(Collections.singleton(id.intValue())).stream().findFirst(); 44 } 28 45 } -
src/main/java/com/example/moviezone/service/Impl/FilmServiceImpl.java
r39a45e6 r632e3d8 40 40 } 41 41 42 @Override 43 public List<Film> getFilmsFromCinemaNow(int id) { 44 return filmRepository.getFilmsFromCinemaNow(id); 45 } 46 47 @Override 48 public List<Film> getFilmsNow() { 49 return filmRepository.getFilmsNow(); 50 } 51 42 52 }
Note:
See TracChangeset
for help on using the changeset viewer.