Last change
on this file since 4158cac was 73f0dbc, checked in by DenicaKj <dkorvezir@…>, 21 months ago |
added rating
|
-
Property mode
set to
100644
|
File size:
946 bytes
|
Line | |
---|
1 | package com.example.moviezone.model.manytomany;
|
---|
2 | import lombok.Getter;
|
---|
3 | import lombok.RequiredArgsConstructor;
|
---|
4 | import lombok.Setter;
|
---|
5 | import lombok.ToString;
|
---|
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;
|
---|
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 |
|
---|
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 | }
|
---|
39 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.