| %line | %branch | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| net.sf.mindoro.model.Task |
|
|
| 1 | /* |
|
| 2 | * Created on Jun 9, 2005 |
|
| 3 | * |
|
| 4 | * A Task borne out of a requirement. |
|
| 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 | 1 | 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 | 0 | return this.id; |
| 41 | } |
|
| 42 | ||
| 43 | /** |
|
| 44 | * @param id |
|
| 45 | * The id to set. |
|
| 46 | */ |
|
| 47 | public final void setId(class="keyword">final Long id) { |
|
| 48 | 0 | this.id = id; |
| 49 | 0 | } |
| 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 | 1 | return this.requirement; |
| 58 | } |
|
| 59 | ||
| 60 | /** |
|
| 61 | * @param requirement |
|
| 62 | * The requirement to set. |
|
| 63 | */ |
|
| 64 | public final void setRequirement(class="keyword">final Requirement requirement) { |
|
| 65 | 1 | this.requirement = requirement; |
| 66 | 1 | } |
| 67 | ||
| 68 | /** |
|
| 69 | * @return Returns the name. |
|
| 70 | * @hibernate.property column="name" length="80" not-null="true" |
|
| 71 | */ |
|
| 72 | public final String getName() { |
|
| 73 | 1 | return this.name; |
| 74 | } |
|
| 75 | ||
| 76 | /** |
|
| 77 | * @param name |
|
| 78 | * The name to set. |
|
| 79 | */ |
|
| 80 | public final void setName(class="keyword">final String name) { |
|
| 81 | 1 | this.name = name; |
| 82 | 1 | } |
| 83 | ||
| 84 | /** |
|
| 85 | * @return Returns the description. |
|
| 86 | * @hibernate.property column="description" type="text" not-null="false" |
|
| 87 | */ |
|
| 88 | public final String getDescription() { |
|
| 89 | 1 | return this.description; |
| 90 | } |
|
| 91 | ||
| 92 | /** |
|
| 93 | * @param description |
|
| 94 | * The description to set. |
|
| 95 | */ |
|
| 96 | public final void setDescription(class="keyword">final String description) { |
|
| 97 | 1 | this.description = description; |
| 98 | 1 | } |
| 99 | ||
| 100 | /** |
|
| 101 | * @return Returns the startDate. |
|
| 102 | * @hibernate.property column="startDate" not-null="true" |
|
| 103 | */ |
|
| 104 | public final Date getStartDate() { |
|
| 105 | 1 | return this.startDate; |
| 106 | } |
|
| 107 | ||
| 108 | /** |
|
| 109 | * @param startDate |
|
| 110 | * The startDate to set. |
|
| 111 | */ |
|
| 112 | public final void setStartDate(class="keyword">final Date startDate) { |
|
| 113 | 1 | this.startDate = startDate; |
| 114 | 1 | } |
| 115 | ||
| 116 | /** |
|
| 117 | * @return Returns the endDate. |
|
| 118 | * @hibernate.property column="endDate" not-null="true" |
|
| 119 | */ |
|
| 120 | public final Date getEndDate() { |
|
| 121 | 1 | return this.endDate; |
| 122 | } |
|
| 123 | ||
| 124 | /** |
|
| 125 | * @param endDate |
|
| 126 | * The endDate to set. |
|
| 127 | */ |
|
| 128 | public final void setEndDate(class="keyword">final Date endDate) { |
|
| 129 | 1 | this.endDate = endDate; |
| 130 | 1 | } |
| 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 | 0 | return this.developers; |
| 138 | } |
|
| 139 | ||
| 140 | /** |
|
| 141 | * @param developers |
|
| 142 | * The requirements to set. |
|
| 143 | */ |
|
| 144 | public final void setDevelopers(class="keyword">final Set developers) { |
|
| 145 | 0 | this.developers = developers; |
| 146 | 0 | } |
| 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 | 0 | return this.dependencies; |
| 154 | } |
|
| 155 | ||
| 156 | /** |
|
| 157 | * @param dependencies |
|
| 158 | * The dependencies to set. |
|
| 159 | */ |
|
| 160 | public final void setDependencies(class="keyword">final Set dependencies) { |
|
| 161 | 0 | this.dependencies = dependencies; |
| 162 | 0 | } |
| 163 | } |
| This report is generated by jcoverage, Maven and Maven JCoverage Plugin. |