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