KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ojb > broker > PersonWithArray


1 package org.apache.ojb.broker;
2
3 /**
4  * @author <a HREF="mailto:om@ppi.de">Oliver Matz</a>
5  * @version $Id: PersonWithArray.java,v 1.1 2003/12/20 20:55:36 brj Exp $
6  */

7 public class PersonWithArray
8 {
9
10   private int id;
11   private String JavaDoc firstname;
12   private String JavaDoc lastname;
13   private ProjectWithArray[] projects;
14
15   public PersonWithArray()
16   {
17   }
18
19   public PersonWithArray(int pId, String JavaDoc pFirstname, String JavaDoc pLastname)
20   {
21       id = pId;
22       firstname = pFirstname;
23       lastname = pLastname;
24   }
25
26   public int getId()
27   {
28       return id;
29   }
30
31   public void setId(int id)
32   {
33       this.id = id;
34   }
35
36   public String JavaDoc getFirstname()
37   {
38       return firstname;
39   }
40
41   public void setFirstname(String JavaDoc firstname)
42   {
43       this.firstname = firstname;
44   }
45
46   public String JavaDoc getLastname()
47   {
48       return lastname;
49   }
50
51   public void setLastname(String JavaDoc lastname)
52   {
53       this.lastname = lastname;
54   }
55
56   public ProjectWithArray[] getProjects()
57   {
58       return projects;
59   }
60
61   public void setProjects(ProjectWithArray[] projects)
62   {
63       this.projects = projects;
64   }
65
66   public String JavaDoc toString()
67   {
68       String JavaDoc result = firstname;
69       return result;
70   }
71 }
72
Popular Tags