Last change
on this file since 90317ea was 64ee7f4, checked in by DenicaKj <dkorvezir@…>, 22 months ago |
Fixes
|
-
Property mode
set to
100644
|
File size:
815 bytes
|
Line | |
---|
1 | package com.example.moviezone.service.Impl;
|
---|
2 |
|
---|
3 | import com.example.moviezone.model.Projection_Room;
|
---|
4 | import com.example.moviezone.model.Seat;
|
---|
5 | import com.example.moviezone.repository.SeatRepository;
|
---|
6 | import com.example.moviezone.service.SeatService;
|
---|
7 | import org.springframework.stereotype.Service;
|
---|
8 |
|
---|
9 | import java.util.List;
|
---|
10 |
|
---|
11 | @Service
|
---|
12 | public class SeatServiceImpl implements SeatService {
|
---|
13 | private final SeatRepository seatRepository;
|
---|
14 |
|
---|
15 | public SeatServiceImpl(SeatRepository seatRepository) {
|
---|
16 | this.seatRepository = seatRepository;
|
---|
17 | }
|
---|
18 |
|
---|
19 | @Override
|
---|
20 | public List<Seat> findAllSeats() {
|
---|
21 | return seatRepository.findAll();
|
---|
22 | }
|
---|
23 |
|
---|
24 | @Override
|
---|
25 | public List<Seat> findAllByProjection_Room(Projection_Room projection_room) {
|
---|
26 | return seatRepository.findAllByProjection(projection_room);
|
---|
27 | }
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.