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

Last change on this file was 1e7126f, checked in by DenicaKj <dkorvezir@…>, 15 months ago

fix

  • Property mode set to 100644
File size: 595 bytes
Line 
1package com.example.moviezone.repository;
2
3import com.example.moviezone.model.Projection;
4import org.springframework.data.jpa.repository.JpaRepository;
5import org.springframework.data.jpa.repository.query.Procedure;
6
7import javax.transaction.Transactional;
8import java.time.LocalDate;
9import java.util.List;
10@Transactional
11public interface ProjectionRepository extends JpaRepository<Projection,Integer> {
12 @Procedure("project.getProjectionsForFilms")
13 List<Projection> getProjectionsForFilms(int id);
14 @Procedure("project.getProjectionsNow")
15 List<Projection> getProjectionsNow();
16}
Note: See TracBrowser for help on using the repository browser.