Last change
on this file was 03fd098, checked in by milamihajlovska <mila.mihajlovska01@…>, 22 months ago |
cinemaPlaysFilm implemented
|
-
Property mode
set to
100644
|
File size:
866 bytes
|
Rev | Line | |
---|
[e2ca67b] | 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;
|
---|
[e2ca67b] | 15 |
|
---|
| 16 | @Entity
|
---|
| 17 | @Getter
|
---|
| 18 | @Setter
|
---|
| 19 | @ToString
|
---|
| 20 | @RequiredArgsConstructor
|
---|
[428c8a4] | 21 |
|
---|
[e2ca67b] | 22 | @Table(name = "`cinema_plays_film`")
|
---|
[428c8a4] | 23 |
|
---|
[e2ca67b] | 24 | @IdClass(CinemaPlaysFilmId.class)
|
---|
| 25 | public class CinemaPlaysFilm {
|
---|
| 26 | @Id
|
---|
| 27 | @Column(name = "id_cinema")
|
---|
| 28 | Integer id_cinema;
|
---|
[625a56f] | 29 |
|
---|
[428c8a4] | 30 |
|
---|
[d59ae27] | 31 |
|
---|
| 32 | @Id
|
---|
| 33 | @Column(name = "id_film")
|
---|
[e2ca67b] | 34 | Integer id_film;
|
---|
[03fd098] | 35 |
|
---|
| 36 | public CinemaPlaysFilm(Integer id_cinema,Integer id_film) {
|
---|
| 37 | this.id_cinema = id_cinema;
|
---|
| 38 | this.id_film=id_film;
|
---|
| 39 | }
|
---|
[e2ca67b] | 40 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.