ItEr60S04ValidacionEProbasFuncionaisItEr59S04: [Bug #527] Validate the resource allocation.
This should avoid to save day assignments with null containers.
This commit is contained in:
parent
437ef05741
commit
83f73040ba
1 changed files with 2 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ import java.util.List;
|
|||
import java.util.Set;
|
||||
|
||||
import org.apache.commons.lang.Validate;
|
||||
import org.hibernate.validator.Valid;
|
||||
import org.joda.time.LocalDate;
|
||||
import org.navalplanner.business.common.BaseEntity;
|
||||
import org.navalplanner.business.planner.entities.DayAssignment;
|
||||
|
|
@ -78,6 +79,7 @@ public class LimitingResourceQueueElement extends BaseEntity {
|
|||
endQueuePosition.setHour(0);
|
||||
}
|
||||
|
||||
@Valid
|
||||
public ResourceAllocation<?> getResourceAllocation() {
|
||||
return resourceAllocation;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue