Last change
on this file since 4173acf was 03fd098, checked in by milamihajlovska <mila.mihajlovska01@…>, 22 months ago |
cinemaPlaysFilm implemented
|
-
Property mode
set to
100644
|
File size:
789 bytes
|
Line | |
---|
1 | package com.example.moviezone.service.Impl;
|
---|
2 |
|
---|
3 | import com.example.moviezone.model.manytomany.CinemaPlaysFilm;
|
---|
4 | import com.example.moviezone.repository.CinemaPlaysFilmRepository;
|
---|
5 | import com.example.moviezone.service.CinemaPlaysFilmService;
|
---|
6 | import org.springframework.stereotype.Service;
|
---|
7 |
|
---|
8 | @Service
|
---|
9 | public 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.