01: /*
02: * Copyright 2004-2006 the original author or authors.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.compass.sample.petclinic;
18:
19: /**
20: * Simple JavaBean domain object representing an person.
21: *
22: * @author Ken Krebs
23: */
24:
25: public class Person extends Entity {
26:
27: private String firstName;
28:
29: private String lastName;
30:
31: private String address;
32:
33: private String city;
34:
35: private String telephone;
36:
37: public String getFirstName() {
38: return this .firstName;
39: }
40:
41: public void setFirstName(String firstName) {
42: this .firstName = firstName;
43: }
44:
45: public String getLastName() {
46: return this .lastName;
47: }
48:
49: public void setLastName(String lastName) {
50: this .lastName = lastName;
51: }
52:
53: public String getAddress() {
54: return this .address;
55: }
56:
57: public void setAddress(String address) {
58: this .address = address;
59: }
60:
61: public String getCity() {
62: return this .city;
63: }
64:
65: public void setCity(String city) {
66: this .city = city;
67: }
68:
69: public String getTelephone() {
70: return this .telephone;
71: }
72:
73: public void setTelephone(String telephone) {
74: this.telephone = telephone;
75: }
76: }
|