-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathPerson.java
More file actions
86 lines (69 loc) · 1.78 KB
/
Person.java
File metadata and controls
86 lines (69 loc) · 1.78 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
package io.zipcoder.persistenceapp;
import org.springframework.context.annotation.Bean;
import javax.persistence.*;
import java.util.Date;
@Entity
public class Person {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "id")
private Long id;
@Column(name = "firstName")
private String firstName;
@Column(name = "lastName")
private String lastName;
@Column(name = "mobile")
private String mobile;
// @Temporal(TemporalType.DATE)
// @Column(name = "birthDate")
// private Date birthDate;
@Column(name = "home_id")
private Long home_id;
public Person() {
}
public Person(Long id, String firstName, String lastName, String mobile, Long home_id) {
this.id = id;
this.firstName = firstName;
this.lastName = lastName;
this.mobile = mobile;
// this.birthDate = birthDate;
this.home_id = home_id;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getFirstName() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public String getMobile() {
return mobile;
}
public void setMobile(String mobile) {
this.mobile = mobile;
}
// public Date getBirthDate() {
// return birthDate;
// }
//
// public void setBirthDate(Date birthDate) {
// this.birthDate = birthDate;
// }
public Long getHome_id() {
return home_id;
}
public void setHome_id(Long home_id) {
this.home_id = home_id;
}
}