source: src/main/java/com/example/moviezone/repository/SeatRepository.java

Last change on this file was 00fa72f, checked in by DenicaKj <dkorvezir@…>, 21 months ago

Reservation Implemented

  • Property mode set to 100644
File size: 611 bytes
Line 
1package com.example.moviezone.repository;
2
3import com.example.moviezone.model.Category;
4import com.example.moviezone.model.Projection;
5import com.example.moviezone.model.Projection_Room;
6import com.example.moviezone.model.Seat;
7import org.springframework.data.jpa.repository.JpaRepository;
8import org.springframework.stereotype.Repository;
9
10import java.util.List;
11
12@Repository
13public interface SeatRepository extends JpaRepository<Seat,Integer> {
14 List<Seat> findAllByProjection(Projection_Room projection);
15 List<Seat> findAllByCategoryAndProjection(Category category, Projection_Room projectionRoom);
16}
Note: See TracBrowser for help on using the repository browser.