source: src/main/java/com/example/moviezone/model/Ticket.java@ 2269653

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

First Run No error

  • Property mode set to 100644
File size: 519 bytes
Line 
1package com.example.moviezone.model;
2
3import javax.persistence.*;
4import lombok.Getter;
5import lombok.Setter;
6import lombok.ToString;
7
8import java.math.BigInteger;
9import java.time.LocalDate;
10import java.time.LocalDateTime;
11
12@Entity
13@Getter
14@Setter
15@ToString
16@Table(name = "tickets")
17public class Ticket {
18
19 @Id
20 @GeneratedValue(strategy = GenerationType.IDENTITY)
21 int id_ticket;
22
23 long price;
24 LocalDate date_reserved;
25
26 @ManyToOne
27 @JoinColumn(name = "id_customer")
28 Customer customer;
29
30
31
32
33}
Note: See TracBrowser for help on using the repository browser.