1
2
3
4
5
6 package net.sf.mindoro.model;
7
8 import java.util.Date;
9 import java.util.Set;
10
11 /***
12 * A Task borne out of a requirement.
13 *
14 * @author aisrael
15 * @hibernate.class table="task"
16 */
17 public class Task {
18
19 private Long id;
20
21 private Requirement requirement;
22
23 private String name;
24
25 private String description;
26
27 private Date startDate;
28
29 private Date endDate;
30
31 private Set developers;
32
33 private Set dependencies;
34
35 /***
36 * @return Returns the id.
37 * @hibernate.id column="id" generator-class="native"
38 */
39 public final Long getId() {
40 return this.id;
41 }
42
43 /***
44 * @param id
45 * The id to set.
46 */
47 public final void setId(final Long id) {
48 this.id = id;
49 }
50
51 /***
52 * @return Returns the requirement.
53 * @hibernate.many-to-one class="net.sf.mindoro.model.Requirement"
54 * column="requirement_id"
55 */
56 public final Requirement getRequirement() {
57 return this.requirement;
58 }
59
60 /***
61 * @param requirement
62 * The requirement to set.
63 */
64 public final void setRequirement(final Requirement requirement) {
65 this.requirement = requirement;
66 }
67
68 /***
69 * @return Returns the name.
70 * @hibernate.property column="name" length="80" not-null="true"
71 */
72 public final String getName() {
73 return this.name;
74 }
75
76 /***
77 * @param name
78 * The name to set.
79 */
80 public final void setName(final String name) {
81 this.name = name;
82 }
83
84 /***
85 * @return Returns the description.
86 * @hibernate.property column="description" type="text" not-null="false"
87 */
88 public final String getDescription() {
89 return this.description;
90 }
91
92 /***
93 * @param description
94 * The description to set.
95 */
96 public final void setDescription(final String description) {
97 this.description = description;
98 }
99
100 /***
101 * @return Returns the startDate.
102 * @hibernate.property column="startDate" not-null="true"
103 */
104 public final Date getStartDate() {
105 return this.startDate;
106 }
107
108 /***
109 * @param startDate
110 * The startDate to set.
111 */
112 public final void setStartDate(final Date startDate) {
113 this.startDate = startDate;
114 }
115
116 /***
117 * @return Returns the endDate.
118 * @hibernate.property column="endDate" not-null="true"
119 */
120 public final Date getEndDate() {
121 return this.endDate;
122 }
123
124 /***
125 * @param endDate
126 * The endDate to set.
127 */
128 public final void setEndDate(final Date endDate) {
129 this.endDate = endDate;
130 }
131
132 /***
133 * @return Returns the requirements.
134 * @hibernate.collection-one-to-many class="net.sf.mindoro.model.Developer"
135 */
136 public final Set getDevelopers() {
137 return this.developers;
138 }
139
140 /***
141 * @param developers
142 * The requirements to set.
143 */
144 public final void setDevelopers(final Set developers) {
145 this.developers = developers;
146 }
147
148 /***
149 * @return Returns the dependencies.
150 * @hibernate.collection-one-to-many class="net.sf.mindoro.model.Task"
151 */
152 public final Set getDependencies() {
153 return this.dependencies;
154 }
155
156 /***
157 * @param dependencies
158 * The dependencies to set.
159 */
160 public final void setDependencies(final Set dependencies) {
161 this.dependencies = dependencies;
162 }
163 }