source: src/main/java/com/example/moviezone/service/Impl/CinemaPlaysFilmServiceImpl.java@ 61fed7c

Last change on this file since 61fed7c was 03fd098, checked in by milamihajlovska <mila.mihajlovska01@…>, 22 months ago

cinemaPlaysFilm implemented

  • Property mode set to 100644
File size: 789 bytes
Line 
1package com.example.moviezone.service.Impl;
2
3import com.example.moviezone.model.manytomany.CinemaPlaysFilm;
4import com.example.moviezone.repository.CinemaPlaysFilmRepository;
5import com.example.moviezone.service.CinemaPlaysFilmService;
6import org.springframework.stereotype.Service;
7
8@Service
9public class CinemaPlaysFilmServiceImpl implements CinemaPlaysFilmService {
10 private final CinemaPlaysFilmRepository cinemaPlaysFilmRepository;
11
12 public CinemaPlaysFilmServiceImpl(CinemaPlaysFilmRepository cinemaPlaysFilmRepository) {
13 this.cinemaPlaysFilmRepository = cinemaPlaysFilmRepository;
14 }
15
16 @Override
17 public CinemaPlaysFilm save(Integer id_cinema, Integer id_film) {
18 return cinemaPlaysFilmRepository.save(new CinemaPlaysFilm(id_cinema,id_film));
19 }
20}
Note: See TracBrowser for help on using the repository browser.