|
@@ -0,0 +1,79 @@
|
|
1
|
+package io.zipcoder.persistenceapp;
|
|
2
|
+
|
|
3
|
+import java.util.Date;
|
|
4
|
+
|
|
5
|
+public class Person {
|
|
6
|
+ private String firstName;
|
|
7
|
+ private String lastName;
|
|
8
|
+ private int id;
|
|
9
|
+ private Date birthdate;
|
|
10
|
+ private String mobile;
|
|
11
|
+
|
|
12
|
+ public Person() {
|
|
13
|
+ }
|
|
14
|
+
|
|
15
|
+ public Person(String firstName, String lastName, int id, Date birthdate, String mobile) {
|
|
16
|
+ this.firstName = firstName;
|
|
17
|
+ this.lastName = lastName;
|
|
18
|
+ this.id = id;
|
|
19
|
+ this.birthdate = birthdate;
|
|
20
|
+ this.mobile = mobile;
|
|
21
|
+ }
|
|
22
|
+
|
|
23
|
+ public Person(String firstName, String lastName, Date birthdate) {
|
|
24
|
+ this.firstName = firstName;
|
|
25
|
+ this.lastName = lastName;
|
|
26
|
+ this.birthdate = birthdate;
|
|
27
|
+ }
|
|
28
|
+
|
|
29
|
+ public String getFirstName() {
|
|
30
|
+ return firstName;
|
|
31
|
+ }
|
|
32
|
+
|
|
33
|
+ public void setFirstName(String firstName) {
|
|
34
|
+ this.firstName = firstName;
|
|
35
|
+ }
|
|
36
|
+
|
|
37
|
+ public String getLastName() {
|
|
38
|
+ return lastName;
|
|
39
|
+ }
|
|
40
|
+
|
|
41
|
+ public void setLastName(String lastName) {
|
|
42
|
+ this.lastName = lastName;
|
|
43
|
+ }
|
|
44
|
+
|
|
45
|
+ public int getId() {
|
|
46
|
+ return id;
|
|
47
|
+ }
|
|
48
|
+
|
|
49
|
+ public void setId(int id) {
|
|
50
|
+ this.id = id;
|
|
51
|
+ }
|
|
52
|
+
|
|
53
|
+ public Date getBirthdate() {
|
|
54
|
+ return birthdate;
|
|
55
|
+ }
|
|
56
|
+
|
|
57
|
+ public void setBirthdate(Date birthdate) {
|
|
58
|
+ this.birthdate = birthdate;
|
|
59
|
+ }
|
|
60
|
+
|
|
61
|
+ public String getMobile() {
|
|
62
|
+ return mobile;
|
|
63
|
+ }
|
|
64
|
+
|
|
65
|
+ public void setMobile(String mobile) {
|
|
66
|
+ this.mobile = mobile;
|
|
67
|
+ }
|
|
68
|
+
|
|
69
|
+ @Override
|
|
70
|
+ public String toString() {
|
|
71
|
+ return "Person{" +
|
|
72
|
+ "firstName='" + firstName + '\'' +
|
|
73
|
+ ", lastName='" + lastName + '\'' +
|
|
74
|
+ ", id=" + id +
|
|
75
|
+ ", birthdate=" + birthdate +
|
|
76
|
+ ", mobile='" + mobile + '\'' +
|
|
77
|
+ '}';
|
|
78
|
+ }
|
|
79
|
+}
|