Last change
on this file was 00fa72f, checked in by DenicaKj <dkorvezir@…>, 21 months ago |
Reservation Implemented
|
-
Property mode
set to
100644
|
File size:
902 bytes
|
Line | |
---|
1 | package com.example.moviezone.service.Impl;
|
---|
2 |
|
---|
3 | import com.example.moviezone.model.Projection_Room;
|
---|
4 | import com.example.moviezone.repository.Projection_RoomRepository;
|
---|
5 | import com.example.moviezone.service.Projection_RoomService;
|
---|
6 | import org.springframework.stereotype.Service;
|
---|
7 |
|
---|
8 | import java.util.List;
|
---|
9 |
|
---|
10 | @Service
|
---|
11 | public class Projection_RoomServiceImpl implements Projection_RoomService {
|
---|
12 | private final Projection_RoomRepository projectionRoomRepository;
|
---|
13 |
|
---|
14 | public Projection_RoomServiceImpl(Projection_RoomRepository projectionRoomRepository) {
|
---|
15 | this.projectionRoomRepository = projectionRoomRepository;
|
---|
16 | }
|
---|
17 |
|
---|
18 | @Override
|
---|
19 | public List<Projection_Room> findAllProjectionRooms() {
|
---|
20 | return projectionRoomRepository.findAll();
|
---|
21 | }
|
---|
22 |
|
---|
23 | @Override
|
---|
24 | public List<Projection_Room> getRoomByProjection(int id) {
|
---|
25 | return projectionRoomRepository.getRoomsForProjection(id);
|
---|
26 | }
|
---|
27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.