source: src/main/java/com/example/moviezone/service/Impl/CinemaOrganizesEventServiceImpl.java@ 04153a9

Last change on this file since 04153a9 was fc448f5, checked in by milamihajlovska <mila.mihajlovska01@…>, 22 months ago

cinemaOrganizesEvent implemented

  • Property mode set to 100644
File size: 865 bytes
Line 
1package com.example.moviezone.service.Impl;
2
3import com.example.moviezone.model.manytomany.CinemaOrganizesEvent;
4import com.example.moviezone.repository.CinemaOrganizesEventRepository;
5import com.example.moviezone.service.CinemaOrganizesEventService;
6import org.springframework.stereotype.Service;
7
8@Service
9public 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.