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

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