Line | |
---|
1 | package com.example.moviezone.repository;
|
---|
2 |
|
---|
3 | import com.example.moviezone.model.Discount;
|
---|
4 | import com.example.moviezone.model.Projection;
|
---|
5 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
6 | import org.springframework.data.jpa.repository.query.Procedure;
|
---|
7 |
|
---|
8 | import javax.transaction.Transactional;
|
---|
9 | import java.util.List;
|
---|
10 |
|
---|
11 | @Transactional
|
---|
12 | public interface DiscountRepository extends JpaRepository<Discount,Integer> {
|
---|
13 | @Procedure("project.getValidDiscounts")
|
---|
14 | List<Discount> getValidDiscounts();
|
---|
15 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.