ItEr33S14CUCreacionUnidadesPlanificacion: Adding deadline to TaskElement
This commit is contained in:
parent
e6d9f7c6fb
commit
8804c5aff1
2 changed files with 11 additions and 0 deletions
|
|
@ -45,6 +45,8 @@ public abstract class TaskElement extends BaseEntity {
|
|||
|
||||
private Date endDate;
|
||||
|
||||
private LocalDate deadline;
|
||||
|
||||
private String name;
|
||||
|
||||
private String notes;
|
||||
|
|
@ -171,6 +173,14 @@ public abstract class TaskElement extends BaseEntity {
|
|||
this.endDate = endDate != null ? new Date(endDate.getTime()) : null;
|
||||
}
|
||||
|
||||
public LocalDate getDeadline() {
|
||||
return deadline;
|
||||
}
|
||||
|
||||
public void setDeadline(LocalDate deadline) {
|
||||
this.deadline = deadline;
|
||||
}
|
||||
|
||||
void add(Dependency dependency) {
|
||||
if (this.equals(dependency.getOrigin())) {
|
||||
dependenciesWithThisOrigin.add(dependency);
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
<property name="notes"/>
|
||||
<property name="startDate" type="timestamp" />
|
||||
<property name="endDate" type="timestamp" />
|
||||
<property name="deadline" type="org.joda.time.contrib.hibernate.PersistentLocalDate" />
|
||||
|
||||
<many-to-one name="orderElement" cascade="none" column="ORDER_ELEMENT_ID" not-null="false" />
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue