Changeset ef84238 for src/main/java/com/example/moviezone/service
- Timestamp:
- 02/10/23 11:18:48 (23 months ago)
- Branches:
- master
- Children:
- 04153a9
- Parents:
- 7926d68
- Location:
- src/main/java/com/example/moviezone/service
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/service/EventService.java
r7926d68 ref84238 1 1 package com.example.moviezone.service; 2 2 3 import ch.qos.logback.core.encoder.EchoEncoder; 3 4 import com.example.moviezone.model.Event; 4 5 … … 13 14 List<Event> getEventsFromCinema(int id); 14 15 Optional<Event> getEventById(Long id); 16 List<Event> getEventsForCustomer(int id); 15 17 } -
src/main/java/com/example/moviezone/service/Impl/EventServiceImpl.java
r7926d68 ref84238 43 43 return eventRepository.findAllById(Collections.singleton(id.intValue())).stream().findFirst(); 44 44 } 45 46 @Override 47 public List<Event> getEventsForCustomer(int id) { 48 return eventRepository.getEventsForCustomer(id); 49 } 45 50 }
Note:
See TracChangeset
for help on using the changeset viewer.