forked from ZipCodeCore/FinalGroupProjects-Java
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAddress.java
More file actions
76 lines (61 loc) · 1.53 KB
/
Address.java
File metadata and controls
76 lines (61 loc) · 1.53 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
package runner.entities;
import com.fasterxml.jackson.annotation.JsonView;
import runner.views.Views;
import javax.persistence.*;
@Entity
public class Address {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Long id;
@JsonView(Views.Address.class)
@Column(nullable = false)
private String firstLine;
@Column(nullable = true)
@JsonView(Views.Address.class)
private String secondLIne;
@Column(nullable = false)
@JsonView(Views.Address.class)
private String city;
@Column(nullable = false)
@JsonView(Views.Address.class)
private String state;
@Column(nullable = false)
@JsonView(Views.Address.class)
private String zipcode;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getFirstLine() {
return firstLine;
}
public void setFirstLine(String firstLine) {
this.firstLine = firstLine;
}
public String getSecondLIne() {
return secondLIne;
}
public void setSecondLIne(String secondLIne) {
this.secondLIne = secondLIne;
}
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public String getZipcode() {
return zipcode;
}
public void setZipcode(String zipcode) {
this.zipcode = zipcode;
}
}