Last change
on this file since a9ffccd was 64ee7f4, checked in by DenicaKj <dkorvezir@…>, 22 months ago |
Fixes
|
-
Property mode
set to
100644
|
File size:
949 bytes
|
Line | |
---|
1 | package com.example.moviezone.service.Impl;
|
---|
2 |
|
---|
3 | import com.example.moviezone.model.manytomany.ProjectionIsPlayedInRoom;
|
---|
4 | import com.example.moviezone.repository.ProjectionIsPlayedInRoomRepository;
|
---|
5 | import com.example.moviezone.service.ProjectionIsPlayedInRoomService;
|
---|
6 | import org.springframework.stereotype.Service;
|
---|
7 |
|
---|
8 | import java.util.List;
|
---|
9 | import java.util.Optional;
|
---|
10 |
|
---|
11 | @Service
|
---|
12 | public 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.