01: package org.apache.ojb.otm;
02:
03: import java.util.ArrayList;
04: import java.util.Collection;
05:
06: public abstract class AbstractPerson {
07: private int id;
08: protected Collection addresses = new ArrayList();
09: protected String name;
10:
11: public int getId() {
12: return id;
13: }
14:
15: public void setId(int id) {
16: this .id = id;
17: }
18:
19: public Collection getAddresses() {
20: return addresses;
21: }
22:
23: public void setAddresses(Collection addresses) {
24: this .addresses = addresses;
25: }
26:
27: public String getName() {
28: return name;
29: }
30:
31: public void setName(String name) {
32: this.name = name;
33: }
34: }
|