forked from ebean-orm/ebean-orm.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomer.java
More file actions
43 lines (32 loc) · 716 Bytes
/
Customer.java
File metadata and controls
43 lines (32 loc) · 716 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
43
import io.ebean.annotation.NotNull;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.time.LocalDate;
/**
* Customer entity bean.
*/
@Entity
@Table(name = "customer")
public class Customer extends BaseModel {
@NotNull
private String name;
private LocalDate registered;
public Customer(String name) {
this.name = name;
}
public String toString() {
return "id:" + id + " name:" + name;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public LocalDate getRegistered() {
return registered;
}
public void setRegistered(LocalDate registered) {
this.registered = registered;
}
}