01: package org.apache.ojb.broker;
02:
03: /**
04: *
05: * @author <a href="mailto:om@ppi.de">Oliver Matz</a>
06: * @version $Id: ProjectWithArray.java,v 1.1 2003/12/20 20:55:36 brj Exp $
07: */
08: public class ProjectWithArray {
09: private int id;
10: private String title;
11: private String description;
12: private PersonWithArray[] persons;
13:
14: public ProjectWithArray() {
15: }
16:
17: public ProjectWithArray(int pId, String pTitle, String pDescription) {
18: id = pId;
19: title = pTitle;
20: description = pDescription;
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 getTitle() {
32: return title;
33: }
34:
35: public void setTitle(String title) {
36: this .title = title;
37: }
38:
39: public String getDescription() {
40: return description;
41: }
42:
43: public void setDescription(String description) {
44: this .description = description;
45: }
46:
47: public PersonWithArray[] getPersons() {
48: return persons;
49: }
50:
51: public void setPersons(PersonWithArray[] persons) {
52: this .persons = persons;
53: }
54:
55: public String toString() {
56: String result = title;
57: result += " ";
58: result += persons;
59:
60: return result;
61: }
62:
63: }
|