Last change
on this file since 4bfcc04 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 | |
---|
1 | package com.example.moviezone.service.Impl;
|
---|
2 |
|
---|
3 | import com.example.moviezone.repository.CustomerRatesFilmRepository;
|
---|
4 | import com.example.moviezone.service.CustomerRatesFilmService;
|
---|
5 | import org.springframework.stereotype.Service;
|
---|
6 |
|
---|
7 | @Service
|
---|
8 | public 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.