Added attribute sumOfHoursAllocated to the entity TaskElement.

FEA: ItEr61S03RFPerformanceCompanyView
This commit is contained in:
Jacobo Aragunde Pérez 2010-09-23 13:24:21 +02:00
parent 863de92aea
commit 71f41b2aea
2 changed files with 16 additions and 0 deletions

View file

@ -591,4 +591,18 @@ public abstract class TaskElement extends BaseEntity {
each.getType());
}
private Integer sumOfHoursAllocated = new Integer(0);
public void setSumOfHoursAllocated(Integer sumOfHoursAllocated) {
this.sumOfHoursAllocated = sumOfHoursAllocated;
}
public void addSumOfHoursAllocated(Integer sumOfHoursAllocated) {
this.sumOfHoursAllocated += sumOfHoursAllocated;
}
public Integer getSumOfHoursAllocated() {
return sumOfHoursAllocated;
}
}

View file

@ -27,6 +27,8 @@
<property name="deadline" type="org.joda.time.contrib.hibernate.PersistentLocalDate" />
<property name="advancePercentage" column="ADVANCE_PERCENTAGE" access="field" scale="4"/>
<property name="sumOfHoursAllocated"/>
<!-- Indexed -->
<many-to-one name="parent" class="TaskGroup" cascade="none" column="parent"
index="idx_TaskElement_on_TaskGroup" />