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

Last change on this file was 73f0dbc, checked in by DenicaKj <dkorvezir@…>, 21 months ago

added rating

  • Property mode set to 100644
File size: 661 bytes
Line 
1package com.example.moviezone.repository;
2
3import com.example.moviezone.model.manytomany.CustomerRatesFilm;
4import com.example.moviezone.model.manytomany.CustomerRatesFilmId;
5import org.springframework.data.jpa.repository.JpaRepository;
6import org.springframework.data.jpa.repository.query.Procedure;
7import org.springframework.data.repository.query.Param;
8import org.springframework.stereotype.Repository;
9
10@Repository
11public interface CustomerRatesFilmRepository extends JpaRepository<CustomerRatesFilm, CustomerRatesFilmId> {
12@Procedure("project.avg_rating1")
13 double avg_rating(int id);
14 CustomerRatesFilm save(CustomerRatesFilm customerRatesFilm);
15}
Note: See TracBrowser for help on using the repository browser.