- Timestamp:
- 02/09/23 14:06:45 (21 months ago)
- Branches:
- master
- Children:
- 6a9006d, a9ffccd
- Parents:
- 0ba5d1a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/service/Impl/SeatServiceImpl.java
r0ba5d1a r00fa72f 1 1 package com.example.moviezone.service.Impl; 2 2 3 import com.example.moviezone.model.Category; 3 4 import com.example.moviezone.model.Projection_Room; 4 5 import com.example.moviezone.model.Seat; … … 8 9 9 10 import java.util.List; 11 import java.util.Optional; 10 12 11 13 @Service 12 14 public class SeatServiceImpl implements SeatService { 15 16 13 17 private final SeatRepository seatRepository; 14 18 … … 26 30 return seatRepository.findAllByProjection(projection_room); 27 31 } 32 33 @Override 34 public List<Seat> findAllByRoomAndCategory(Projection_Room projectionRoom, Category category) { 35 return seatRepository.findAllByCategoryAndProjection(category,projectionRoom); 36 } 37 38 @Override 39 public Optional<Seat> getSeatById(int id) { 40 return Optional.of(seatRepository.getById(id)); 41 } 28 42 }
Note:
See TracChangeset
for help on using the changeset viewer.