ItEr57S04ValidacionEProbasFuncionaisItEr56S04: [Bug #430] Fix bug.

The derivedAllocations weren't being updated.
This commit is contained in:
Óscar González Fernández 2010-05-03 22:11:33 +02:00
parent 83e3d4a2c2
commit d172b9dc45

View file

@ -715,8 +715,8 @@ public abstract class ResourceAllocation<T extends DayAssignment> extends
Collection<DerivedAllocation> derivedAllocations) {
// avoiding error: A collection with cascade="all-delete-orphan" was no
// longer referenced by the owning entity instance
derivedAllocations.clear();
derivedAllocations.addAll(derivedAllocations);
this.derivedAllocations.clear();
this.derivedAllocations.addAll(derivedAllocations);
}
public Set<DerivedAllocation> getDerivedAllocations() {