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 Address implements Serializable {
21:
22: private int id;
23: private String country;
24: private String city;
25: private String street;
26:
27: public Address() {
28: }
29:
30: public Address(String country, String city, String street) {
31: this .country = country;
32: this .city = city;
33: this .street = street;
34: }
35:
36: public int getId() {
37: return id;
38: }
39:
40: public void setId(int id) {
41: this .id = id;
42: }
43:
44: public String getCountry() {
45: return country;
46: }
47:
48: public void setCountry(String country) {
49: this .country = country;
50: }
51:
52: public String getCity() {
53: return city;
54: }
55:
56: public void setCity(String city) {
57: this .city = city;
58: }
59:
60: public String getStreet() {
61: return street;
62: }
63:
64: public void setStreet(String street) {
65: this.street = street;
66: }
67: }
|