Ignore:
Timestamp:
02/02/23 22:46:30 (22 months ago)
Author:
milamihajlovska <mila.mihajlovska01@…>
Branches:
master
Children:
ac25203
Parents:
f60cb20
Message:

service impl changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/moviezone/service/Impl/FilmServiceImpl.java

    rf60cb20 r1b248e4  
    22
    33import com.example.moviezone.model.Film;
     4import com.example.moviezone.repository.FilmRepository;
    45import com.example.moviezone.service.FilmService;
    56import org.springframework.stereotype.Service;
     
    910@Service
    1011public class FilmServiceImpl implements FilmService {
     12    private final FilmRepository filmRepository;
     13
     14    public FilmServiceImpl(FilmRepository filmRepository) {
     15        this.filmRepository = filmRepository;
     16    }
     17
    1118    @Override
    1219    public List<Film> findAllFilms() {
    13         return null;
     20        return filmRepository.findAll();
    1421    }
    1522}
Note: See TracChangeset for help on using the changeset viewer.