Rev | Line | |
---|
[d59ae27] | 1 | package com.example.moviezone.model.manytomany;
|
---|
| 2 |
|
---|
| 3 | import lombok.Getter;
|
---|
| 4 | import lombok.RequiredArgsConstructor;
|
---|
| 5 | import lombok.Setter;
|
---|
| 6 | import lombok.ToString;
|
---|
[2269653] | 7 | import org.springframework.security.core.GrantedAuthority;
|
---|
| 8 | import org.springframework.security.core.userdetails.UserDetails;
|
---|
| 9 |
|
---|
| 10 | import javax.management.relation.Role;
|
---|
| 11 | import javax.persistence.*;
|
---|
| 12 | import java.time.LocalDate;
|
---|
| 13 | import java.time.LocalDateTime;
|
---|
| 14 | import java.util.Collection;
|
---|
[d59ae27] | 15 |
|
---|
| 16 | @Entity
|
---|
| 17 | @Getter
|
---|
| 18 | @Setter
|
---|
| 19 | @ToString
|
---|
| 20 | @RequiredArgsConstructor
|
---|
| 21 | @Table(name = "projection_is_played_in_room")
|
---|
| 22 | @IdClass(ProjectionIsPlayedInRoomId.class)
|
---|
| 23 | public class ProjectionIsPlayedInRoom {
|
---|
| 24 | @Id
|
---|
| 25 | @Column(name ="id_projection")
|
---|
[5867520] | 26 | Integer idprojection;
|
---|
[d59ae27] | 27 |
|
---|
| 28 | @Id
|
---|
| 29 | @Column(name ="id_room")
|
---|
[5867520] | 30 | Integer idroom;
|
---|
[d59ae27] | 31 |
|
---|
[1e7126f] | 32 | public ProjectionIsPlayedInRoom(Integer idprojection, Integer idroom) {
|
---|
| 33 | this.idprojection = idprojection;
|
---|
| 34 | this.idroom = idroom;
|
---|
| 35 | }
|
---|
[d59ae27] | 36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.