ItEr36S14CUAdministracionCategoriaCosteItEr35S15: corrected a bug to validate HourCosts when saved through CostCategoryDAO

This commit is contained in:
Jacobo Aragunde Pérez 2009-12-02 20:58:35 +01:00 committed by Javier Moran Rua
parent 0d60630d78
commit 6d2444e5fb

View file

@ -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