Ignore:
Timestamp:
02/10/23 01:18:53 (21 months ago)
Author:
DenicaKj <dkorvezir@…>
Branches:
master
Children:
7926d68
Parents:
01a1ca6
Message:

added rating

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/moviezone/service/Impl/CustomerRatesFilmImpl.java

    r01a1ca6 r73f0dbc  
    11package com.example.moviezone.service.Impl;
    22
     3import com.example.moviezone.model.manytomany.CustomerRatesFilm;
    34import com.example.moviezone.repository.CustomerRatesFilmRepository;
    45import com.example.moviezone.service.CustomerRatesFilmService;
     
    1718        return customerRatesFilmRepository.avg_rating(id);
    1819    }
     20
     21    @Override
     22    public CustomerRatesFilm addRating(Integer id_customer, Integer id_film, double rating) {
     23        CustomerRatesFilm customerRatesFilm=new CustomerRatesFilm(id_customer,id_film,rating);
     24        return customerRatesFilmRepository.save(customerRatesFilm);
     25    }
    1926}
Note: See TracChangeset for help on using the changeset viewer.