source: src/main/java/com/example/moviezone/service/Impl/ProjectionIsPlayedInRoomServiceImpl.java@ 39a45e6

Last change on this file since 39a45e6 was 64ee7f4, checked in by DenicaKj <dkorvezir@…>, 22 months ago

Fixes

  • Property mode set to 100644
File size: 949 bytes
Line 
1package com.example.moviezone.service.Impl;
2
3import com.example.moviezone.model.manytomany.ProjectionIsPlayedInRoom;
4import com.example.moviezone.repository.ProjectionIsPlayedInRoomRepository;
5import com.example.moviezone.service.ProjectionIsPlayedInRoomService;
6import org.springframework.stereotype.Service;
7
8import java.util.List;
9import java.util.Optional;
10
11@Service
12public class ProjectionIsPlayedInRoomServiceImpl implements ProjectionIsPlayedInRoomService {
13 private final ProjectionIsPlayedInRoomRepository projectionIsPlayedInRoomRepository;
14
15 public ProjectionIsPlayedInRoomServiceImpl(ProjectionIsPlayedInRoomRepository projectionIsPlayedInRoomRepository) {
16 this.projectionIsPlayedInRoomRepository = projectionIsPlayedInRoomRepository;
17 }
18
19 @Override
20 public List<ProjectionIsPlayedInRoom> getProjectionPlayedInRoom(Integer id) {
21 return projectionIsPlayedInRoomRepository.findAllByProjectionId(id);
22 }
23}
Note: See TracBrowser for help on using the repository browser.