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.odmg.shared;
26:
27: import java.util.Collection;
28: import java.io.Serializable;
29:
30: import org.apache.commons.lang.builder.ToStringBuilder;
31:
32: public class Project implements Serializable {
33: private int id;
34: private String title;
35: private String description;
36: private Collection members;
37: private Collection roles;
38:
39: public Project() {
40: }
41:
42: public Project(int pId, String pTitle, String pDescription) {
43: id = pId;
44: title = pTitle;
45: description = pDescription;
46: }
47:
48: public Collection getRoles() {
49: return roles;
50: }
51:
52: public void setRoles(Collection roles) {
53: this .roles = roles;
54: }
55:
56: public int getId() {
57: return id;
58: }
59:
60: public void setId(int id) {
61: this .id = id;
62: }
63:
64: public String getTitle() {
65: return title;
66: }
67:
68: public void setTitle(String title) {
69: this .title = title;
70: }
71:
72: public String getDescription() {
73: return description;
74: }
75:
76: public void setDescription(String description) {
77: this .description = description;
78: }
79:
80: public Collection getMembers() {
81: return members;
82: }
83:
84: public void setMembers(Collection members) {
85: this .members = members;
86: }
87:
88: public String toString() {
89: return new ToStringBuilder(this ).append("id", id).append(
90: "title", title).append("description", description)
91: .append("Memberss size",
92: members != null ? members.size() : 0).append(
93: "Roles size",
94: members != null ? members.size() : 0)
95: .toString();
96: }
97: }
|