Last change
on this file since caf3a07 was e6b2246, checked in by milamihajlovska <mila.mihajlovska01@…>, 22 months ago |
added models
|
-
Property mode
set to
100644
|
File size:
437 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.LocalDateTime;
|
---|
9 |
|
---|
10 | @Entity
|
---|
11 | @Getter
|
---|
12 | @Setter
|
---|
13 | @ToString
|
---|
14 | @Table(name = "tickets")
|
---|
15 | public class Ticket {
|
---|
16 |
|
---|
17 | @Id
|
---|
18 | @GeneratedValue(strategy = GenerationType.IDENTITY)
|
---|
19 | Integer id_ticket;
|
---|
20 |
|
---|
21 | Integer price;
|
---|
22 | LocalDateTime date_reserved;
|
---|
23 |
|
---|
24 | @ManyToOne
|
---|
25 | Customer customer;
|
---|
26 |
|
---|
27 |
|
---|
28 |
|
---|
29 |
|
---|
30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.