ItEr60S04ValidacionEProbasFuncionaisItEr59S04: Move validation annotation from field to method.
Validation annotations on fields causes problems when the entity is a proxy.
This commit is contained in:
parent
83f73040ba
commit
51ad035263
1 changed files with 5 additions and 1 deletions
|
|
@ -85,9 +85,13 @@ public class Task extends TaskElement {
|
|||
|
||||
private CalculatedValue calculatedValue = CalculatedValue.END_DATE;
|
||||
|
||||
@Valid
|
||||
private Set<ResourceAllocation<?>> resourceAllocations = new HashSet<ResourceAllocation<?>>();
|
||||
|
||||
@Valid
|
||||
private Set<ResourceAllocation<?>> getResourceAlloations() {
|
||||
return new HashSet<ResourceAllocation<?>>(resourceAllocations);
|
||||
}
|
||||
|
||||
@AfterCopy
|
||||
private void ifLimitingAllocationRemove() {
|
||||
if (isLimiting()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue