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

Last change on this file was 90317ea, checked in by DenicaKj <dkorvezir@…>, 22 months ago

Events and Event

  • Property mode set to 100644
File size: 874 bytes
Line 
1package com.example.moviezone.repository;
2
3import com.example.moviezone.model.Film;
4import com.example.moviezone.model.procedures.FilmsReturnTable;
5import org.springframework.data.jpa.repository.JpaRepository;
6import org.springframework.data.jpa.repository.query.Procedure;
7import org.springframework.data.repository.query.Param;
8import org.springframework.jdbc.core.JdbcTemplate;
9
10import javax.swing.tree.RowMapper;
11import javax.transaction.Transactional;
12import java.sql.ResultSet;
13import java.sql.SQLException;
14import java.util.List;
15@Transactional
16public interface FilmRepository extends JpaRepository<Film,Integer> {
17 @Procedure("project.getFilmsFromCinema1")
18 List<Film> getFilmsFromCinema(int id);
19 @Procedure("project.getFilmsFromCinemaNow")
20 List<Film> getFilmsFromCinemaNow(int id);
21 @Procedure("project.getFilmsNow")
22 List<Film> getFilmsNow();
23}
Note: See TracBrowser for help on using the repository browser.