source: src/main/java/com/example/moviezone/model/manytomany/CustomerRatesFilm.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: 946 bytes
RevLine 
[625a56f]1package com.example.moviezone.model.manytomany;
2import lombok.Getter;
3import lombok.RequiredArgsConstructor;
4import lombok.Setter;
5import lombok.ToString;
[2269653]6import org.springframework.security.core.GrantedAuthority;
7import org.springframework.security.core.userdetails.UserDetails;
8
9import javax.management.relation.Role;
10import javax.persistence.*;
11import java.time.LocalDate;
12import java.time.LocalDateTime;
13import java.util.Collection;
[625a56f]14
15@Entity
16@Getter
17@Setter
18@ToString
19@RequiredArgsConstructor
20@Table(name = "`customer_rates_film`")
21@IdClass(CustomerRatesFilmId.class)
22public class CustomerRatesFilm {
23
24 @Id
25 @Column(name ="id_customer")
26 Integer id_customer;
27
28 @Id
29 @Column(name ="id_film")
30 Integer id_film;
31
[73f0dbc]32 double rating;
33
34 public CustomerRatesFilm(Integer id_customer, Integer id_film, double rating) {
35 this.id_customer = id_customer;
36 this.id_film = id_film;
37 this.rating = rating;
38 }
[625a56f]39}
Note: See TracBrowser for help on using the repository browser.