Last change
on this file was ef84238, checked in by DenicaKj <dkorvezir@…>, 21 months ago |
Interested in event
|
-
Property mode
set to
100644
|
File size:
672 bytes
|
Line | |
---|
1 | package com.example.moviezone.repository;
|
---|
2 |
|
---|
3 | import com.example.moviezone.model.Event;
|
---|
4 | import com.example.moviezone.model.Film;
|
---|
5 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
6 | import org.springframework.data.jpa.repository.query.Procedure;
|
---|
7 |
|
---|
8 | import javax.transaction.Transactional;
|
---|
9 | import java.util.List;
|
---|
10 | @Transactional
|
---|
11 | public interface EventRepository extends JpaRepository<Event,Integer> {
|
---|
12 | @Procedure("project.getEventsFromCinema")
|
---|
13 | List<Event> getFilmsFromCinema(int id);
|
---|
14 | @Procedure("project.getEventsFromNow")
|
---|
15 | List<Event> getFilmsFromCinemaNow();
|
---|
16 | @Procedure("project.getEventsForCustomer")
|
---|
17 | List<Event> getEventsForCustomer(int id);
|
---|
18 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.