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 | |
---|
1 | package com.example.moviezone.repository;
|
---|
2 |
|
---|
3 | import com.example.moviezone.model.Customer;
|
---|
4 | import com.example.moviezone.model.Ticket;
|
---|
5 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
6 | import org.springframework.data.jpa.repository.query.Procedure;
|
---|
7 | import org.springframework.stereotype.Repository;
|
---|
8 |
|
---|
9 | import java.util.List;
|
---|
10 | @Repository
|
---|
11 | public 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.