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: package org.apache.ojb.broker;
22:
23: import java.io.Serializable;
24:
25: public class ProjectUnidirectional implements Serializable {
26: private int id;
27: private String title;
28: private String description;
29:
30: public ProjectUnidirectional() {
31: }
32:
33: public ProjectUnidirectional(int pId, String pTitle,
34: String pDescription) {
35: id = pId;
36: title = pTitle;
37: description = pDescription;
38: }
39:
40: public int getId() {
41: return id;
42: }
43:
44: public void setId(int id) {
45: this .id = id;
46: }
47:
48: public String getTitle() {
49: return title;
50: }
51:
52: public void setTitle(String title) {
53: this .title = title;
54: }
55:
56: public String getDescription() {
57: return description;
58: }
59:
60: public void setDescription(String description) {
61: this .description = description;
62: }
63:
64: public String toString() {
65: String result = title;
66: result += " ";
67:
68: return result;
69: }
70: }
|