source: src/main/java/com/example/moviezone/model/Projection.java@ eb226b2

Last change on this file since eb226b2 was eb226b2, checked in by DenicaKj <dkorvezir@…>, 22 months ago

Fixing errors

  • Property mode set to 100644
File size: 703 bytes
Line 
1package com.example.moviezone.model;
2
3
4import jakarta.persistence.*;
5import lombok.Getter;
6import lombok.Setter;
7import lombok.ToString;
8
9import java.time.LocalDate;
10
11@Getter
12@Setter
13@ToString
14@Entity
15@Table(name = "projections")
16public class Projection {
17 @Id
18 @Column(name = "id_projection", nullable = false)
19 @GeneratedValue(strategy = GenerationType.IDENTITY)
20 Integer id_projection;
21
22 LocalDate date_time_start;
23 String type_of_technology;
24 LocalDate date_time_end;
25 @ManyToOne
26 @JoinColumn(name = "id_film")
27 Film film;
28 @ManyToOne
29 @JoinColumn(name = "id_event")
30 Event event;
31 @ManyToOne
32 @JoinColumn(name = "id_discount")
33 Discount discount;
34
35}
Note: See TracBrowser for help on using the repository browser.