Last change
on this file since 7926d68 was fc448f5, checked in by milamihajlovska <mila.mihajlovska01@…>, 22 months ago |
cinemaOrganizesEvent implemented
|
-
Property mode
set to
100644
|
File size:
885 bytes
|
Line | |
---|
1 | package com.example.moviezone.model.manytomany;
|
---|
2 | import lombok.Getter;
|
---|
3 | import lombok.RequiredArgsConstructor;
|
---|
4 | import lombok.Setter;
|
---|
5 | import lombok.ToString;
|
---|
6 | import org.springframework.security.core.GrantedAuthority;
|
---|
7 | import org.springframework.security.core.userdetails.UserDetails;
|
---|
8 |
|
---|
9 | import javax.management.relation.Role;
|
---|
10 | import javax.persistence.*;
|
---|
11 | import java.time.LocalDate;
|
---|
12 | import java.time.LocalDateTime;
|
---|
13 | import java.util.Collection;
|
---|
14 |
|
---|
15 |
|
---|
16 | @Entity
|
---|
17 | @Getter
|
---|
18 | @Setter
|
---|
19 | @ToString
|
---|
20 | @RequiredArgsConstructor
|
---|
21 | @Table(name = "`cinema_organizes_event`")
|
---|
22 | @IdClass(CinemaOrganizesEventId.class)
|
---|
23 | public class CinemaOrganizesEvent {
|
---|
24 | @Id
|
---|
25 | @Column(name = "id_cinema")
|
---|
26 | Integer id_cinema;
|
---|
27 | @Column(name = "id_event")
|
---|
28 | @Id
|
---|
29 | Integer id_event;
|
---|
30 |
|
---|
31 | public CinemaOrganizesEvent(Integer id_cinema, Integer id_event) {
|
---|
32 | this.id_cinema=id_cinema;
|
---|
33 | this.id_event=id_event;
|
---|
34 | }
|
---|
35 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.