Changeset 1e7126f for src/main/java/com/example/moviezone/repository
- Timestamp:
- 08/24/23 02:28:14 (16 months ago)
- Branches:
- master
- Children:
- bcb4acc
- Parents:
- 40935d3
- Location:
- src/main/java/com/example/moviezone/repository
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/moviezone/repository/DiscountRepository.java
r40935d3 r1e7126f 2 2 3 3 import com.example.moviezone.model.Discount; 4 import com.example.moviezone.model.Projection; 4 5 import org.springframework.data.jpa.repository.JpaRepository; 6 import org.springframework.data.jpa.repository.query.Procedure; 5 7 8 import javax.transaction.Transactional; 9 import java.util.List; 10 11 @Transactional 6 12 public interface DiscountRepository extends JpaRepository<Discount,Integer> { 13 @Procedure("project.getValidDiscounts") 14 List<Discount> getValidDiscounts(); 7 15 } -
src/main/java/com/example/moviezone/repository/ProjectionRepository.java
r40935d3 r1e7126f 12 12 @Procedure("project.getProjectionsForFilms") 13 13 List<Projection> getProjectionsForFilms(int id); 14 @Procedure("project.getProjectionsNow") 15 List<Projection> getProjectionsNow(); 14 16 }
Note:
See TracChangeset
for help on using the changeset viewer.