source: src/main/java/com/example/moviezone/service/Impl/CustomerRatesFilmImpl.java@ afa6544

Last change on this file since afa6544 was 43a1688, checked in by DenicaKj <dkorvezir@…>, 22 months ago

I CALLED A PROCEDURE FROM SPRING

  • Property mode set to 100644
File size: 674 bytes
Line 
1package com.example.moviezone.service.Impl;
2
3import com.example.moviezone.repository.CustomerRatesFilmRepository;
4import com.example.moviezone.service.CustomerRatesFilmService;
5import org.springframework.stereotype.Service;
6
7@Service
8public class CustomerRatesFilmImpl implements CustomerRatesFilmService {
9 private final CustomerRatesFilmRepository customerRatesFilmRepository;
10
11 public CustomerRatesFilmImpl(CustomerRatesFilmRepository customerRatesFilmRepository) {
12 this.customerRatesFilmRepository = customerRatesFilmRepository;
13 }
14
15 @Override
16 public double avg_rating(int id) {
17 return customerRatesFilmRepository.avg_rating(id);
18 }
19}
Note: See TracBrowser for help on using the repository browser.