KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.apache.ojb.otm;
2
3 import java.util.ArrayList JavaDoc;
4 import java.util.Collection JavaDoc;
5
6 public abstract class AbstractPerson
7 {
8     private int id;
9     protected Collection JavaDoc addresses = new ArrayList JavaDoc();
10     protected String JavaDoc name;
11
12     public int getId()
13     {
14         return id;
15     }
16
17     public void setId(int id)
18     {
19         this.id = id;
20     }
21
22     public Collection JavaDoc getAddresses()
23     {
24         return addresses;
25     }
26
27     public void setAddresses(Collection JavaDoc addresses)
28     {
29         this.addresses = addresses;
30     }
31
32     public String JavaDoc getName()
33     {
34         return name;
35     }
36
37     public void setName(String JavaDoc name)
38     {
39         this.name = name;
40     }
41 }
42
Popular Tags