View Javadoc
1   /*
2    * Created on Jun 9, 2005
3    *
4    * A Requirement for a Deliverable.
5    */
6   package net.sf.mindoro.model;
7   
8   import java.util.Set;
9   
10  /***
11   * A Requirement for a Deliverable.
12   * 
13   * @author aisrael
14   * @hibernate.class table="requirement"
15   */
16  public class Requirement {
17  
18      private Long id;
19  
20      private Deliverable deliverable;
21  
22      private String name;
23  
24      private String description;
25  
26      private Set tasks;
27  
28      /***
29       * @return Returns the id.
30       * @hibernate.id column="id" generator-class="native"
31       */
32      public final Long getId() {
33          return this.id;
34      }
35  
36      /***
37       * @param id
38       *            The id to set.
39       */
40      public final void setId(final Long id) {
41          this.id = id;
42      }
43  
44      /***
45       * @return Returns the deliverable.
46       * @hibernate.many-to-one class="net.sf.mindoro.model.Deliverable"
47       *                        column="deliverable_id"
48       */
49      public final Deliverable getDeliverable() {
50          return this.deliverable;
51      }
52  
53      /***
54       * @param deliverable
55       *            The deliverable to set.
56       */
57      public final void setDeliverable(final Deliverable deliverable) {
58          this.deliverable = deliverable;
59      }
60  
61      /***
62       * @return Returns the name.
63       * @hibernate.property column="name" length="80" not-null="true"
64       */
65      public final String getName() {
66          return this.name;
67      }
68  
69      /***
70       * @param name
71       *            The name to set.
72       */
73      public final void setName(final String name) {
74          this.name = name;
75      }
76  
77      /***
78       * @return Returns the description.
79       * @hibernate.property column="description" type="text" not-null="false"
80       */
81      public final String getDescription() {
82          return this.description;
83      }
84  
85      /***
86       * @param description
87       *            The description to set.
88       */
89      public final void setDescription(final String description) {
90          this.description = description;
91      }
92  
93      /***
94       * @return Returns the requirements.
95       * @hibernate.collection-one-to-many class="net.sf.mindoro.model.Task"
96       */
97      public final Set getTasks() {
98          return this.tasks;
99      }
100 
101     /***
102      * @param tasks
103      *            The requirements to set.
104      */
105     public final void setTasks(final Set tasks) {
106         this.tasks = tasks;
107     }
108 
109 }