01: package org.apache.ojb.broker;
02:
03: /**
04: * @author <a href="mailto:om@ppi.de">Oliver Matz</a>
05: * @version $Id: PersonWithArray.java,v 1.1 2003/12/20 20:55:36 brj Exp $
06: */
07: public class PersonWithArray {
08:
09: private int id;
10: private String firstname;
11: private String lastname;
12: private ProjectWithArray[] projects;
13:
14: public PersonWithArray() {
15: }
16:
17: public PersonWithArray(int pId, String pFirstname, String pLastname) {
18: id = pId;
19: firstname = pFirstname;
20: lastname = pLastname;
21: }
22:
23: public int getId() {
24: return id;
25: }
26:
27: public void setId(int id) {
28: this .id = id;
29: }
30:
31: public String getFirstname() {
32: return firstname;
33: }
34:
35: public void setFirstname(String firstname) {
36: this .firstname = firstname;
37: }
38:
39: public String getLastname() {
40: return lastname;
41: }
42:
43: public void setLastname(String lastname) {
44: this .lastname = lastname;
45: }
46:
47: public ProjectWithArray[] getProjects() {
48: return projects;
49: }
50:
51: public void setProjects(ProjectWithArray[] projects) {
52: this .projects = projects;
53: }
54:
55: public String toString() {
56: String result = firstname;
57: return result;
58: }
59: }
|