Last change
on this file since 1b248e4 was 625a56f, checked in by milamihajlovska <mila.mihajlovska01@…>, 22 months ago |
customer rates film model
|
-
Property mode
set to
100644
|
File size:
483 bytes
|
Line | |
---|
1 | package com.example.moviezone.model.manytomany;
|
---|
2 |
|
---|
3 | import jakarta.persistence.*;
|
---|
4 | import lombok.Getter;
|
---|
5 | import lombok.RequiredArgsConstructor;
|
---|
6 | import lombok.Setter;
|
---|
7 | import lombok.ToString;
|
---|
8 |
|
---|
9 | @Entity
|
---|
10 | @Getter
|
---|
11 | @Setter
|
---|
12 | @ToString
|
---|
13 | @RequiredArgsConstructor
|
---|
14 | @Table(name = "`customer_rates_film`")
|
---|
15 | @IdClass(CustomerRatesFilmId.class)
|
---|
16 | public class CustomerRatesFilm {
|
---|
17 |
|
---|
18 | @Id
|
---|
19 | @Column(name ="id_customer")
|
---|
20 | Integer id_customer;
|
---|
21 |
|
---|
22 | @Id
|
---|
23 | @Column(name ="id_film")
|
---|
24 | Integer id_film;
|
---|
25 |
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.