Rev | Line | |
---|
[625a56f] | 1 | package com.example.moviezone.model.manytomany;
|
---|
| 2 | import lombok.Getter;
|
---|
| 3 | import lombok.RequiredArgsConstructor;
|
---|
| 4 | import lombok.Setter;
|
---|
| 5 | import lombok.ToString;
|
---|
[2269653] | 6 | import org.springframework.security.core.GrantedAuthority;
|
---|
| 7 | import org.springframework.security.core.userdetails.UserDetails;
|
---|
| 8 |
|
---|
| 9 | import javax.management.relation.Role;
|
---|
| 10 | import javax.persistence.*;
|
---|
| 11 | import java.time.LocalDate;
|
---|
| 12 | import java.time.LocalDateTime;
|
---|
| 13 | import 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)
|
---|
| 22 | public 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.