-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy pathCustomer.java
More file actions
42 lines (31 loc) · 815 Bytes
/
Customer.java
File metadata and controls
42 lines (31 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package com.booleanuk.api.cinema.customer;
import jakarta.persistence.*;
import lombok.*;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "customers")
public class Customer {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private int id;
@Column(name = "name")
private String name;
@Column(name = "email")
private String email;
@Column(name = "phone")
private String phone;
@Column(name = "created_at")
private String created_at;
@Column(name = "updated_at")
private String updated_at;
public Customer(String name, String email, String phone) {
this.name = name;
this.email = email;
this.phone = phone;
}
}