Last change
on this file since fc165ab was fc165ab, checked in by DenicaKj <dkorvezir@…>, 22 months ago |
Projection and Rooms
|
-
Property mode
set to
100644
|
File size:
563 bytes
|
Line | |
---|
1 | package com.example.moviezone.model;
|
---|
2 |
|
---|
3 |
|
---|
4 | import jakarta.persistence.*;
|
---|
5 | import lombok.Getter;
|
---|
6 | import lombok.Setter;
|
---|
7 | import lombok.ToString;
|
---|
8 |
|
---|
9 | import java.time.LocalDate;
|
---|
10 |
|
---|
11 | @Getter
|
---|
12 | @Setter
|
---|
13 | @ToString
|
---|
14 | @Entity
|
---|
15 | @Table(name = "projections")
|
---|
16 | public class Projection {
|
---|
17 | @Id
|
---|
18 | @Column(name = "id_projection", nullable = false)
|
---|
19 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
20 | private Long id_projection;
|
---|
21 |
|
---|
22 | LocalDate date_time_start;
|
---|
23 | String type_of_technology;
|
---|
24 | LocalDate date_time_end;
|
---|
25 | @ManyToOne
|
---|
26 | Film film;
|
---|
27 | @ManyToOne
|
---|
28 | Event event;
|
---|
29 |
|
---|
30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.