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 = "`cinema_organizes_event`")
|
---|
15 | @IdClass(CinemaOrganizesEventId.class)
|
---|
16 | public class CinemaOrganizesEvent {
|
---|
17 | @Id
|
---|
18 | @Column(name = "id_cinema")
|
---|
19 | Integer id_cinema;
|
---|
20 | @Column(name = "id_event")
|
---|
21 | @Id
|
---|
22 | Integer id_event;
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.