-
Notifications
You must be signed in to change notification settings - Fork 199
/
Copy pathOrderTable.java
59 lines (45 loc) · 1.19 KB
/
OrderTable.java
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package kitchenpos.order.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.UUID;
@Table(name = "order_table")
@Entity
public class OrderTable {
@Column(name = "id", columnDefinition = "binary(16)")
@Id
private UUID id;
@Column(name = "name", nullable = false)
private String name;
@Column(name = "number_of_guests", nullable = false)
private int numberOfGuests;
@Column(name = "occupied", nullable = false)
private boolean occupied;
public OrderTable() {
}
public UUID getId() {
return id;
}
public void setId(final UUID id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(final String name) {
this.name = name;
}
public int getNumberOfGuests() {
return numberOfGuests;
}
public void setNumberOfGuests(final int numberOfGuests) {
this.numberOfGuests = numberOfGuests;
}
public boolean isOccupied() {
return occupied;
}
public void setOccupied(final boolean occupied) {
this.occupied = occupied;
}
}