01: /*
02: * ObJectRelationalBridge - Bridging Java Objects and Relational Databases
03: * http://objectbridge.sourceforge.net
04: * Copyright (C) 2000, 2001 Thomas Mahler, et al.
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2.1 of the License, or (at your option) any later version.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public
17: * License along with this library; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19: */
20:
21: /*
22: * Created by: thma
23: * Date: May 6, 2001
24: */
25: package org.apache.ojb.broker;
26:
27: import java.util.Collection;
28: import java.io.Serializable;
29:
30: public class Project implements Serializable {
31: private int id;
32: private String title;
33: private String description;
34: private Collection persons;
35: private Collection roles;
36:
37: public Project() {
38: }
39:
40: public Project(int pId, String pTitle, String pDescription) {
41: id = pId;
42: title = pTitle;
43: description = pDescription;
44: }
45:
46: public Collection getRoles() {
47: return roles;
48: }
49:
50: public void setRoles(Collection roles) {
51: this .roles = roles;
52: }
53:
54: public int getId() {
55: return id;
56: }
57:
58: public void setId(int id) {
59: this .id = id;
60: }
61:
62: public String getTitle() {
63: return title;
64: }
65:
66: public void setTitle(String title) {
67: this .title = title;
68: }
69:
70: public String getDescription() {
71: return description;
72: }
73:
74: public void setDescription(String description) {
75: this .description = description;
76: }
77:
78: public Collection getPersons() {
79: return persons;
80: }
81:
82: public void setPersons(Collection persons) {
83: this .persons = persons;
84: }
85:
86: public String toString() {
87: String result = title;
88: result += " ";
89: result += persons;
90:
91: return result;
92: }
93: }
|