Last change
on this file since 625a56f was 625a56f, checked in by milamihajlovska <mila.mihajlovska01@…>, 22 months ago |
customer rates film model
|
-
Property mode
set to
100644
|
File size:
477 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 |
|
---|
15 | @Table(name = "`cinema_plays_film`")
|
---|
16 |
|
---|
17 | @IdClass(CinemaPlaysFilmId.class)
|
---|
18 | public class CinemaPlaysFilm {
|
---|
19 | @Id
|
---|
20 | @Column(name = "id_cinema")
|
---|
21 | Integer id_cinema;
|
---|
22 |
|
---|
23 |
|
---|
24 |
|
---|
25 | @Id
|
---|
26 | @Column(name = "id_film")
|
---|
27 | Integer id_film;
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.