source: src/main/java/com/example/moviezone/service/Impl/FilmServiceImpl.java@ ade54f6

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

service impl changes

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