Trinh Tong 6 år sedan
förälder
incheckning
a22b3e3545

+ 39
- 0
src/main/java/io/zipcoder/persistenceapp/model/Home.java Visa fil

@@ -0,0 +1,39 @@
1
+package io.zipcoder.persistenceapp.model;
2
+
3
+public class Home {
4
+    private Integer id;
5
+    private String address, homeNumber;
6
+
7
+    public Home(Integer id, String address, String homeNumber) {
8
+        this.id = id;
9
+        this.address = address;
10
+        this.homeNumber = homeNumber;
11
+    }
12
+
13
+    public Home() {
14
+    }
15
+
16
+    public Integer getId() {
17
+        return id;
18
+    }
19
+
20
+    public void setId(Integer id) {
21
+        this.id = id;
22
+    }
23
+
24
+    public String getAddress() {
25
+        return address;
26
+    }
27
+
28
+    public void setAddress(String address) {
29
+        this.address = address;
30
+    }
31
+
32
+    public String getHomeNumber() {
33
+        return homeNumber;
34
+    }
35
+
36
+    public void setHomeNumber(String homeNumber) {
37
+        this.homeNumber = homeNumber;
38
+    }
39
+}

+ 1
- 0
src/main/java/io/zipcoder/persistenceapp/model/Person.java Visa fil

@@ -20,6 +20,7 @@ public class Person {
20 20
         return id;
21 21
     }
22 22
 
23
+
23 24
     public void setId(Integer id) {
24 25
         this.id = id;
25 26
     }