/[projects]/miscJava/Test4Simple/src/main/java/dk/thoerup/webservice/Person.java
ViewVC logotype

Contents of /miscJava/Test4Simple/src/main/java/dk/thoerup/webservice/Person.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2521 - (show annotations) (download)
Wed Apr 29 09:32:47 2015 UTC (9 years ago) by torben
File size: 863 byte(s)
Add Person REST service

1 package dk.thoerup.webservice;
2
3 import java.util.Date;
4
5 public class Person {
6 private int id;
7 private String name;
8
9 private String address;
10 private Date birthday;
11
12 public Person() {
13 }
14
15 public Person(int id, String name, String address, Date birthday) {
16 this.id = id;
17 this.name = name;
18 this.address = address;
19 this.birthday = birthday;
20 }
21
22 public int getId() {
23 return id;
24 }
25
26 public void setId(int id) {
27 this.id = id;
28 }
29
30 public String getName() {
31 return name;
32 }
33
34 public void setName(String name) {
35 this.name = name;
36 }
37
38 public String getAddress() {
39 return address;
40 }
41
42 public void setAddress(String address) {
43 this.address = address;
44 }
45
46 public Date getBirthday() {
47 return birthday;
48 }
49
50 public void setBirthday(Date birthday) {
51 this.birthday = birthday;
52 }
53 }

  ViewVC Help
Powered by ViewVC 1.1.20