|
@@ -1,15 +1,24 @@
|
1
|
1
|
package io.zipcoder.persistenceapp.person;
|
2
|
2
|
|
|
3
|
+import javax.persistence.*;
|
3
|
4
|
import javax.persistence.criteria.CriteriaBuilder;
|
4
|
5
|
import java.util.Date;
|
5
|
6
|
|
|
7
|
+@Entity
|
6
|
8
|
public class Person {
|
7
|
|
-
|
|
9
|
+ @Id
|
|
10
|
+ @GeneratedValue
|
|
11
|
+ @Column(name = "id")
|
8
|
12
|
private Long id;
|
|
13
|
+ @Column(name = "first_name")
|
9
|
14
|
private String firstName;
|
|
15
|
+ @Column(name = "last_name")
|
10
|
16
|
private String lastName;
|
|
17
|
+ @Column(name = "mobile")
|
11
|
18
|
private String mobile;
|
|
19
|
+ @Column(name = "birthday")
|
12
|
20
|
private String birthDate;
|
|
21
|
+ @Column(name = "home_id")
|
13
|
22
|
private Short homeId;
|
14
|
23
|
|
15
|
24
|
public Person(){
|