ItEr36S14CUAdministracionCategoriaCosteItEr35S15: corrected a bug to validate HourCosts when saved through CostCategoryDAO
This commit is contained in:
parent
0d60630d78
commit
6d2444e5fb
1 changed files with 2 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ import java.util.Set;
|
|||
|
||||
import org.hibernate.validator.AssertTrue;
|
||||
import org.hibernate.validator.NotEmpty;
|
||||
import org.hibernate.validator.Valid;
|
||||
import org.joda.time.LocalDate;
|
||||
import org.navalplanner.business.common.BaseEntity;
|
||||
|
||||
|
|
@ -36,6 +37,7 @@ public class CostCategory extends BaseEntity {
|
|||
@NotEmpty
|
||||
private String name;
|
||||
|
||||
@Valid
|
||||
private Set<HourCost> hourCosts = new HashSet<HourCost>();
|
||||
|
||||
// Default constructor, needed by Hibernate
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue