Rev | Line | |
---|
[9eba1fb] | 1 | package com.example.moviezone.service.Impl;
|
---|
| 2 |
|
---|
[64ee7f4] | 3 | import com.example.moviezone.model.manytomany.ProjectionIsPlayedInRoom;
|
---|
[9eba1fb] | 4 | import com.example.moviezone.repository.ProjectionIsPlayedInRoomRepository;
|
---|
| 5 | import com.example.moviezone.service.ProjectionIsPlayedInRoomService;
|
---|
| 6 | import org.springframework.stereotype.Service;
|
---|
| 7 |
|
---|
[64ee7f4] | 8 | import java.util.List;
|
---|
| 9 | import java.util.Optional;
|
---|
| 10 |
|
---|
[9eba1fb] | 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 |
|
---|
[64ee7f4] | 19 | @Override
|
---|
| 20 | public List<ProjectionIsPlayedInRoom> getProjectionPlayedInRoom(Integer id) {
|
---|
| 21 | return projectionIsPlayedInRoomRepository.findAllByProjectionId(id);
|
---|
| 22 | }
|
---|
[9eba1fb] | 23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.