01: package org.apache.ojb.broker;
02:
03: import java.io.Serializable;
04:
05: public class Task implements Serializable {
06: private int task_id;
07:
08: private int person_id;
09:
10: private int project_id;
11:
12: private String taskName;
13:
14: private Role role;
15:
16: public Task() {
17: }
18:
19: public Task(int pTaskId, int pPersonId, int pProjectId,
20: String pTaskname) {
21: task_id = pTaskId;
22: person_id = pPersonId;
23: project_id = pProjectId;
24: taskName = pTaskname;
25: }
26:
27: public int getTask_id() {
28: return task_id;
29: }
30:
31: public void setTask_id(int task_id) {
32: this .task_id = task_id;
33: }
34:
35: public String getTaskName() {
36: return taskName;
37: }
38:
39: public void setTaskName(String taskName) {
40: this .taskName = taskName;
41: }
42:
43: public int getPerson_id() {
44: return person_id;
45: }
46:
47: public void setPerson_id(int person_id) {
48: this .person_id = person_id;
49: }
50:
51: public int getProject_id() {
52: return project_id;
53: }
54:
55: public void setProject_id(int project_id) {
56: this .project_id = project_id;
57: }
58:
59: public Role getRole() {
60: return role;
61: }
62:
63: public void setRole(Role role) {
64: this .role = role;
65: }
66:
67: public String toString() {
68: return taskName + " has the " + role.getRoleName()
69: + " role assigned to it.";
70: }
71: }
|