Line | |
---|
1 | package com.example.moviezone.repository;
|
---|
2 |
|
---|
3 | import com.example.moviezone.model.manytomany.CustomerRatesFilm;
|
---|
4 | import com.example.moviezone.model.manytomany.CustomerRatesFilmId;
|
---|
5 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
6 | import org.springframework.data.jpa.repository.query.Procedure;
|
---|
7 | import org.springframework.data.repository.query.Param;
|
---|
8 | import org.springframework.stereotype.Repository;
|
---|
9 |
|
---|
10 | @Repository
|
---|
11 | public 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.