Last change
on this file since d59ae27 was d59ae27, checked in by milamihajlovska <mila.mihajlovska01@…>, 22 months ago |
many to many models
|
-
Property mode
set to
100644
|
File size:
717 bytes
|
Line | |
---|
1 | package com.example.moviezone.model.manytomany;
|
---|
2 | <<<<<<< Updated upstream
|
---|
3 |
|
---|
4 | =======
|
---|
5 | >>>>>>> Stashed changes
|
---|
6 | import jakarta.persistence.*;
|
---|
7 | import lombok.Getter;
|
---|
8 | import lombok.RequiredArgsConstructor;
|
---|
9 | import lombok.Setter;
|
---|
10 | import lombok.ToString;
|
---|
11 |
|
---|
12 | @Entity
|
---|
13 | @Getter
|
---|
14 | @Setter
|
---|
15 | @ToString
|
---|
16 | @RequiredArgsConstructor
|
---|
17 | <<<<<<< Updated upstream
|
---|
18 | @Table(name = "`cinema_plays_film`")
|
---|
19 | =======
|
---|
20 | @Table(name = "cinema_plays_film")
|
---|
21 | >>>>>>> Stashed changes
|
---|
22 | @IdClass(CinemaPlaysFilmId.class)
|
---|
23 | public class CinemaPlaysFilm {
|
---|
24 | @Id
|
---|
25 | @Column(name = "id_cinema")
|
---|
26 | Integer id_cinema;
|
---|
27 | <<<<<<< Updated upstream
|
---|
28 | @Column(name = "id_film")
|
---|
29 | @Id
|
---|
30 | =======
|
---|
31 |
|
---|
32 | @Id
|
---|
33 | @Column(name = "id_film")
|
---|
34 | >>>>>>> Stashed changes
|
---|
35 | Integer id_film;
|
---|
36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.