Last change
on this file since f60cb20 was d59ae27, checked in by milamihajlovska <mila.mihajlovska01@…>, 22 months ago |
many to many models
|
-
Property mode
set to
100644
|
File size:
508 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 = "projection_is_played_in_room")
|
---|
15 | @IdClass(ProjectionIsPlayedInRoomId.class)
|
---|
16 | public class ProjectionIsPlayedInRoom {
|
---|
17 | @Id
|
---|
18 | @Column(name ="id_projection")
|
---|
19 | Integer id_projection;
|
---|
20 |
|
---|
21 | @Id
|
---|
22 | @Column(name ="id_room")
|
---|
23 | Integer id_room;
|
---|
24 |
|
---|
25 |
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.