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

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

fix

  • Property mode set to 100644
File size: 505 bytes
Line 
1package com.example.moviezone.repository;
2
3import com.example.moviezone.model.Discount;
4import com.example.moviezone.model.Projection;
5import org.springframework.data.jpa.repository.JpaRepository;
6import org.springframework.data.jpa.repository.query.Procedure;
7
8import javax.transaction.Transactional;
9import java.util.List;
10
11@Transactional
12public 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.