01: package org.apache.ojb.otm;
02:
03: /* Copyright 2002-2005 The Apache Software Foundation
04: *
05: * Licensed under the Apache License, Version 2.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: import java.io.Serializable;
19:
20: public class AddressDesc implements Serializable {
21:
22: private int id;
23: private String desc;
24: private int personId;
25: private Person person;
26: private int addressId;
27: private Address address;
28:
29: public AddressDesc() {
30: }
31:
32: public AddressDesc(String desc, Address address) {
33: this .desc = desc;
34: this .address = address;
35: }
36:
37: public int getId() {
38: return id;
39: }
40:
41: public void setId(int id) {
42: this .id = id;
43: }
44:
45: public String getDesc() {
46: return desc;
47: }
48:
49: public void setDesc(String desc) {
50: this .desc = desc;
51: }
52:
53: public int getPersonId() {
54: return personId;
55: }
56:
57: public void setPersonId(int personId) {
58: this .personId = personId;
59: }
60:
61: public Person getPerson() {
62: return person;
63: }
64:
65: public void setPerson(Person person) {
66: this .person = person;
67: }
68:
69: public int getAddressId() {
70: return addressId;
71: }
72:
73: public void setAddressId(int addressId) {
74: this .addressId = addressId;
75: }
76:
77: public Address getAddress() {
78: return address;
79: }
80:
81: public void setAddress(Address address) {
82: this.address = address;
83: }
84:
85: }
|