Added attribute sumOfHoursAllocated to the entity TaskElement.
FEA: ItEr61S03RFPerformanceCompanyView
This commit is contained in:
parent
863de92aea
commit
71f41b2aea
2 changed files with 16 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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" />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue