source: src/main/java/com/example/moviezone/repository/TicketRepository.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: 557 bytes
Line 
1package com.example.moviezone.repository;
2
3import com.example.moviezone.model.Customer;
4import com.example.moviezone.model.Ticket;
5import org.springframework.data.jpa.repository.JpaRepository;
6import org.springframework.data.jpa.repository.query.Procedure;
7import org.springframework.stereotype.Repository;
8
9import java.util.List;
10@Repository
11public interface TicketRepository extends JpaRepository<Ticket,Integer> {
12 List<Ticket> findAllByCustomer(Customer customer);
13 @Procedure("project.getPriceForTicket")
14 Integer getPriceForTicket(int id);
15}
Note: See TracBrowser for help on using the repository browser.