KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > samples > petclinic > Person


1 package org.springframework.samples.petclinic;
2
3 /**
4  * Simple JavaBean domain object representing an person.
5  *
6  * @author Ken Krebs
7  */

8 public class Person extends Entity {
9
10     private String JavaDoc firstName;
11
12     private String JavaDoc lastName;
13
14     private String JavaDoc address;
15
16     private String JavaDoc city;
17
18     private String JavaDoc telephone;
19
20     public String JavaDoc getFirstName() {
21         return this.firstName;
22     }
23
24     public void setFirstName(String JavaDoc firstName) {
25         this.firstName = firstName;
26     }
27
28     public String JavaDoc getLastName() {
29         return this.lastName;
30     }
31
32     public void setLastName(String JavaDoc lastName) {
33         this.lastName = lastName;
34     }
35
36     public String JavaDoc getAddress() {
37         return this.address;
38     }
39
40     public void setAddress(String JavaDoc address) {
41         this.address = address;
42     }
43
44     public String JavaDoc getCity() {
45         return this.city;
46     }
47
48     public void setCity(String JavaDoc city) {
49         this.city = city;
50     }
51
52     public String JavaDoc getTelephone() {
53         return this.telephone;
54     }
55
56     public void setTelephone(String JavaDoc telephone) {
57         this.telephone = telephone;
58     }
59
60 }
61
Popular Tags