source: src/main/java/com/example/moviezone/model/manytomany/ProjectionIsPlayedInRoom.java@ 1e7126f

Last change on this file since 1e7126f was 1e7126f, checked in by DenicaKj <dkorvezir@…>, 15 months ago

fix

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