ItEr53S12CUCreacionRecursosLimitantesItEr52S13: Added limitingResource not-null constraint

This commit is contained in:
Diego Pino Garcia 2010-04-07 16:35:49 +02:00 committed by Javier Moran Rua
parent 0f4a1ac839
commit 0f65eb966f
2 changed files with 2 additions and 2 deletions

View file

@ -94,7 +94,7 @@ public abstract class Resource extends IntegrationEntity {
private Set<ResourcesCostCategoryAssignment> resourcesCostCategoryAssignments =
new HashSet<ResourcesCostCategoryAssignment>();
private Boolean limitedResource;
private Boolean limitedResource = Boolean.FALSE;
private void clearCachedData() {
assignmentsByDayCached = null;

View file

@ -15,7 +15,7 @@
<property name="code" access="property" not-null="true" unique="true"/>
<property name="limitedResource" column="LIMITED_RESOURCE" />
<property name="limitedResource" column="LIMITED_RESOURCE" not-null="true"/>
<set access="field" cascade="all-delete-orphan" inverse="true" name="criterionSatisfactions">
<key column="resource" not-null="true"/>