Last change
on this file since 608fba87 was fc448f5, checked in by milamihajlovska <mila.mihajlovska01@…>, 22 months ago |
cinemaOrganizesEvent implemented
|
-
Property mode
set to
100644
|
File size:
865 bytes
|
Line | |
---|
1 | package com.example.moviezone.service.Impl;
|
---|
2 |
|
---|
3 | import com.example.moviezone.model.manytomany.CinemaOrganizesEvent;
|
---|
4 | import com.example.moviezone.repository.CinemaOrganizesEventRepository;
|
---|
5 | import com.example.moviezone.service.CinemaOrganizesEventService;
|
---|
6 | import org.springframework.stereotype.Service;
|
---|
7 |
|
---|
8 | @Service
|
---|
9 | public class CinemaOrganizesEventServiceImpl implements CinemaOrganizesEventService {
|
---|
10 | private final CinemaOrganizesEventRepository cinemaOrganizesEventRepository;
|
---|
11 |
|
---|
12 | public CinemaOrganizesEventServiceImpl(CinemaOrganizesEventRepository cinemaOrganizesEventRepository) {
|
---|
13 | this.cinemaOrganizesEventRepository = cinemaOrganizesEventRepository;
|
---|
14 | }
|
---|
15 |
|
---|
16 | @Override
|
---|
17 | public CinemaOrganizesEvent save(Integer id_cinema, Integer id_event) {
|
---|
18 | return cinemaOrganizesEventRepository.save(new CinemaOrganizesEvent(id_cinema,id_event));
|
---|
19 | }
|
---|
20 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.