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 | |
---|
1 | package com.example.moviezone.repository;
|
---|
2 |
|
---|
3 | import com.example.moviezone.model.Film;
|
---|
4 | import com.example.moviezone.model.procedures.FilmsReturnTable;
|
---|
5 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
6 | import org.springframework.data.jpa.repository.query.Procedure;
|
---|
7 | import org.springframework.data.repository.query.Param;
|
---|
8 | import org.springframework.jdbc.core.JdbcTemplate;
|
---|
9 |
|
---|
10 | import javax.swing.tree.RowMapper;
|
---|
11 | import javax.transaction.Transactional;
|
---|
12 | import java.sql.ResultSet;
|
---|
13 | import java.sql.SQLException;
|
---|
14 | import java.util.List;
|
---|
15 | @Transactional
|
---|
16 | public 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.