|
@@ -1,5 +1,55 @@
|
1
|
1
|
package io.zipcoder.persistenceapp;
|
2
|
2
|
|
|
3
|
+import java.util.Date;
|
|
4
|
+
|
3
|
5
|
public class Person {
|
4
|
|
-
|
|
6
|
+
|
|
7
|
+ private Long id;
|
|
8
|
+ private String firstName;
|
|
9
|
+ private String lastName;
|
|
10
|
+ private Date birthDate;
|
|
11
|
+
|
|
12
|
+ public Person(){
|
|
13
|
+ firstName="Juliette";
|
|
14
|
+ lastName="Lowe";
|
|
15
|
+ birthDate=new Date(1900, 12,3);
|
|
16
|
+ }
|
|
17
|
+
|
|
18
|
+ public Person(String firstName, String lastName, Date birthDate) {
|
|
19
|
+ this.firstName = firstName;
|
|
20
|
+ this.lastName = lastName;
|
|
21
|
+ this.birthDate = birthDate;
|
|
22
|
+ }
|
|
23
|
+
|
|
24
|
+ public Long getId() {
|
|
25
|
+ return id;
|
|
26
|
+ }
|
|
27
|
+
|
|
28
|
+ public void setId(Long id) {
|
|
29
|
+ this.id = id;
|
|
30
|
+ }
|
|
31
|
+
|
|
32
|
+ public String getFirstName() {
|
|
33
|
+ return firstName;
|
|
34
|
+ }
|
|
35
|
+
|
|
36
|
+ public void setFirstName(String firstName) {
|
|
37
|
+ this.firstName = firstName;
|
|
38
|
+ }
|
|
39
|
+
|
|
40
|
+ public String getLastName() {
|
|
41
|
+ return lastName;
|
|
42
|
+ }
|
|
43
|
+
|
|
44
|
+ public void setLastName(String lastName) {
|
|
45
|
+ this.lastName = lastName;
|
|
46
|
+ }
|
|
47
|
+
|
|
48
|
+ public Date getBirthDate() {
|
|
49
|
+ return birthDate;
|
|
50
|
+ }
|
|
51
|
+
|
|
52
|
+ public void setBirthDate(Date birthDate) {
|
|
53
|
+ this.birthDate = birthDate;
|
|
54
|
+ }
|
5
|
55
|
}
|