ItEr37S07ArquitecturaServidorItEr36S10: Added cache to criterions, criterionrequirements and criterion satisfaction.
This commit is contained in:
parent
176d0c155d
commit
d0758cfd8d
3 changed files with 8 additions and 0 deletions
|
|
@ -28,11 +28,13 @@
|
|||
</set>
|
||||
|
||||
<set name="labels" table="ORDER_ELEMENT_LABEL" access="field" cascade="all">
|
||||
<cache usage="read-write"/>
|
||||
<key column="ORDER_ELEMENT_ID" not-null="true"/>
|
||||
<many-to-many column="LABEL_ID" class="org.navalplanner.business.labels.entities.Label" />
|
||||
</set>
|
||||
|
||||
<set name="criterionRequirements" access="field" cascade="all,delete-orphan" inverse="true">
|
||||
<cache usage="read-write"/>
|
||||
<key column="ORDER_ELEMENT_ID" not-null="false"></key>
|
||||
<one-to-many class="org.navalplanner.business.requirements.entities.CriterionRequirement"/>
|
||||
</set>
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
|
||||
<hibernate-mapping package="org.navalplanner.business.requirements.entities">
|
||||
<class name="CriterionRequirement">
|
||||
<cache usage="read-write"/>
|
||||
<id access="property" name="id" type="long">
|
||||
<generator class="hilo">
|
||||
<param name="max_lo">100</param>
|
||||
|
|
@ -18,6 +19,7 @@
|
|||
|
||||
<subclass discriminator-value="DIRECT" name="DirectCriterionRequirement">
|
||||
<set access="field" name="children" cascade="delete-orphan" inverse="true">
|
||||
<cache usage="read-write"/>
|
||||
<key column="parent"/>
|
||||
<one-to-many class="IndirectCriterionRequirement"/>
|
||||
</set>
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@
|
|||
|
||||
<!-- Criterion -->
|
||||
<class name="Criterion">
|
||||
<cache usage="read-write"/>
|
||||
<id name="id" access="property" type="long">
|
||||
<generator class="hilo">
|
||||
<param name="max_lo">100</param>
|
||||
|
|
@ -67,6 +68,7 @@
|
|||
<many-to-one name="parent" column="parent" access="field" not-null="false"/>
|
||||
|
||||
<set name="children" access="field" lazy="true" cascade="save-update">
|
||||
<cache usage="read-write"/>
|
||||
<key column="parent" not-null="false"></key>
|
||||
<one-to-many class="Criterion"/>
|
||||
</set>
|
||||
|
|
@ -85,6 +87,7 @@
|
|||
|
||||
<!-- CriterionSatisfaction -->
|
||||
<class name="CriterionSatisfaction">
|
||||
<cache usage="read-write"/>
|
||||
<id name="id" access="property" type="long">
|
||||
<generator class="hilo">
|
||||
<param name="max_lo">100</param>
|
||||
|
|
@ -100,6 +103,7 @@
|
|||
|
||||
<!-- CriterionType -->
|
||||
<class name="CriterionType">
|
||||
<cache usage="read-write"/>
|
||||
<id name="id" access="property" type="long">
|
||||
<generator class="hilo"/>
|
||||
</id>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue