KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ojb > otm > AddressDesc


1 package org.apache.ojb.otm;
2
3 /* Copyright 2002-2005 The Apache Software Foundation
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * 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 JavaDoc;
19
20 public class AddressDesc implements Serializable JavaDoc
21 {
22
23     private int id;
24     private String JavaDoc desc;
25     private int personId;
26     private Person person;
27     private int addressId;
28     private Address address;
29
30     public AddressDesc()
31     {
32     }
33
34     public AddressDesc(String JavaDoc desc, Address address)
35     {
36         this.desc = desc;
37         this.address = address;
38     }
39
40     public int getId()
41     {
42         return id;
43     }
44
45     public void setId(int id)
46     {
47         this.id = id;
48     }
49
50     public String JavaDoc getDesc()
51     {
52         return desc;
53     }
54
55     public void setDesc(String JavaDoc desc)
56     {
57         this.desc = desc;
58     }
59
60     public int getPersonId()
61     {
62         return personId;
63     }
64
65     public void setPersonId(int personId)
66     {
67         this.personId = personId;
68     }
69
70     public Person getPerson()
71     {
72         return person;
73     }
74
75     public void setPerson(Person person)
76     {
77         this.person = person;
78     }
79
80     public int getAddressId()
81     {
82         return addressId;
83     }
84
85     public void setAddressId(int addressId)
86     {
87         this.addressId = addressId;
88     }
89
90     public Address getAddress()
91     {
92         return address;
93     }
94
95     public void setAddress(Address address)
96     {
97         this.address = address;
98     }
99
100 }
101
Popular Tags