source: src/main/java/com/example/moviezone/model/Ticket.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: 499 bytes
Line 
1package com.example.moviezone.model;
2
3import jakarta.persistence.*;
4import lombok.Getter;
5import lombok.Setter;
6import lombok.ToString;
7
8import java.time.LocalDate;
9import java.time.LocalDateTime;
10
11@Entity
12@Getter
13@Setter
14@ToString
15@Table(name = "tickets")
16public class Ticket {
17
18 @Id
19 @GeneratedValue(strategy = GenerationType.IDENTITY)
20 Integer id_ticket;
21
22 Integer price;
23 LocalDate date_reserved;
24
25 @ManyToOne
26 @JoinColumn(name = "id_customer")
27 Customer customer;
28
29
30
31
32}
Note: See TracBrowser for help on using the repository browser.