source: src/main/java/com/example/moviezone/service/Impl/EventServiceImpl.java@ e097c1c

Last change on this file since e097c1c was 1b248e4, checked in by milamihajlovska <mila.mihajlovska01@…>, 22 months ago

service impl changes

  • Property mode set to 100644
File size: 607 bytes
Line 
1package com.example.moviezone.service.Impl;
2
3import com.example.moviezone.model.Event;
4import com.example.moviezone.repository.EventRepository;
5import com.example.moviezone.service.EventService;
6import org.springframework.stereotype.Service;
7
8import java.util.List;
9
10@Service
11public class EventServiceImpl implements EventService {
12 private final EventRepository eventRepository;
13
14 public EventServiceImpl(EventRepository eventRepository) {
15 this.eventRepository = eventRepository;
16 }
17
18 @Override
19 public List<Event> findAllEvents() {
20 return eventRepository.findAll();
21 }
22}
Note: See TracBrowser for help on using the repository browser.