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