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 | |
---|
1 | package com.example.moviezone.model;
|
---|
2 |
|
---|
3 | import jakarta.persistence.*;
|
---|
4 | import lombok.Getter;
|
---|
5 | import lombok.Setter;
|
---|
6 | import lombok.ToString;
|
---|
7 |
|
---|
8 | import java.time.LocalDate;
|
---|
9 | import java.time.LocalDateTime;
|
---|
10 |
|
---|
11 | @Entity
|
---|
12 | @Getter
|
---|
13 | @Setter
|
---|
14 | @ToString
|
---|
15 | @Table(name = "tickets")
|
---|
16 | public 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.