Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<hibernate-mapping>
<class name="org.hisp.dhis.category.Category" table="category">

<cache usage="read-write"/>
<cache usage="nonstrict-read-write"/>

<id name="id" column="categoryid">
<generator class="native"/>
Expand All @@ -30,7 +30,7 @@
not-null="true"/>

<list name="categoryOptions" table="categories_categoryoptions">
<cache usage="read-write"/>
<cache usage="nonstrict-read-write"/>
<key column="categoryid"
foreign-key="fk_categories_categoryoptions_categoryid"/>
<list-index column="sort_order" base="1"/>
Expand All @@ -40,7 +40,7 @@
</list>

<set name="categoryCombos" table="categorycombos_categories" inverse="true">
<cache usage="read-write" />
<cache usage="nonstrict-read-write" />
<key column="categoryid" foreign-key="fk_categorycombo_categoryid" />
<many-to-many class="org.hisp.dhis.category.CategoryCombo" column="categorycomboid"
foreign-key="fk_categorycombos_categories_categorycomboid" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<hibernate-mapping>
<class name="org.hisp.dhis.category.CategoryCombo" table="categorycombo">

<cache usage="read-write" />
<cache usage="nonstrict-read-write" />

<id name="id" column="categorycomboid">
<generator class="native" />
Expand All @@ -20,15 +20,15 @@
<property name="translations" type="jblTranslations"/>

<list name="categories" table="categorycombos_categories">
<cache usage="read-write" />
<cache usage="nonstrict-read-write" />
<key column="categorycomboid" foreign-key="fk_categorycombos_categories_categorycomboid" />
<list-index column="sort_order" base="1" />
<many-to-many class="org.hisp.dhis.category.Category" column="categoryid"
foreign-key="fk_categorycombo_categoryid" />
</list>

<set name="optionCombos" table="categorycombos_optioncombos" inverse="true">
<cache usage="read-write" />
<cache usage="nonstrict-read-write" />
<key column="categorycomboid" foreign-key="fk_categorycombos_optioncombos_categorycomboid" />
<many-to-many class="org.hisp.dhis.category.CategoryOptionCombo" column="categoryoptioncomboid"
foreign-key="fk_categorycombo_categoryoptioncomboid" unique="true" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<hibernate-mapping>
<class name="org.hisp.dhis.category.CategoryDimension" table="categorydimension">

<cache usage="read-write" />
<cache usage="nonstrict-read-write" />

<id name="id" column="categorydimensionid">
<generator class="native" />
Expand All @@ -16,7 +16,7 @@
foreign-key="fk_categorydimension_category" />

<list name="items" table="categorydimension_items">
<cache usage="read-write" />
<cache usage="nonstrict-read-write" />
<key column="categorydimensionid" foreign-key="fk_categorydimension_items_categorydimensionid" />
<list-index column="sort_order" />
<many-to-many class="org.hisp.dhis.category.CategoryOption" column="categoryoptionid"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<hibernate-mapping>
<class name="org.hisp.dhis.category.CategoryOption" table="categoryoption">

<cache usage="read-write" />
<cache usage="nonstrict-read-write" />

<id name="id" column="categoryoptionid">
<generator class="native" />
Expand All @@ -32,27 +32,27 @@
<property name="translations" type="jblTranslations"/>

<set name="organisationUnits" table="categoryoption_organisationunits" batch-size="100">
<cache usage="read-write" />
<cache usage="nonstrict-read-write" />
<key column="categoryoptionid" foreign-key="fk_categoryoption_organisationunits_categoryoptionid" />
<many-to-many column="organisationunitid" class="org.hisp.dhis.organisationunit.OrganisationUnit"
foreign-key="fk_categoryoption_organisationunits_organisationunitid" />
</set>

<set name="categoryOptionCombos" table="categoryoptioncombos_categoryoptions" inverse="true">
<cache usage="read-write" />
<cache usage="nonstrict-read-write" />
<key column="categoryoptionid" foreign-key="fk_categoryoptioncombos_categoryoptions_categoryoptionid" />
<many-to-many class="org.hisp.dhis.category.CategoryOptionCombo" column="categoryoptioncomboid"
foreign-key="fk_categoryoption_categoryoptioncomboid" />
</set>

<set name="categories" table="categories_categoryoptions" inverse="true" batch-size="1000">
<cache usage="read-write" />
<cache usage="nonstrict-read-write" />
<key column="categoryoptionid" />
<many-to-many class="org.hisp.dhis.category.Category" column="categoryid" />
</set>

<set name="groups" table="categoryoptiongroupmembers" inverse="true">
<cache usage="read-write" />
<cache usage="nonstrict-read-write" />
<key column="categoryoptionid" />
<many-to-many class="org.hisp.dhis.category.CategoryOptionGroup" column="categoryoptiongroupid" />
</set>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<hibernate-mapping>
<class name="org.hisp.dhis.category.CategoryOptionCombo" table="categoryoptioncombo">

<cache usage="read-write" />
<cache usage="nonstrict-read-write" />

<id name="id" column="categoryoptioncomboid">
<generator class="native" />
Expand All @@ -20,7 +20,7 @@
<property name="translations" type="jblTranslations"/>

<set name="categoryOptions" table="categoryoptioncombos_categoryoptions">
<cache usage="read-write" />
<cache usage="nonstrict-read-write" />
<key column="categoryoptioncomboid" foreign-key="fk_categoryoptioncombos_categoryoptions_categoryoptioncomboid" />
<many-to-many class="org.hisp.dhis.category.CategoryOption" column="categoryoptionid"
foreign-key="fk_categoryoptioncombo_categoryoptionid" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<hibernate-mapping>
<class name="org.hisp.dhis.category.CategoryOptionGroup" table="categoryoptiongroup">

<cache usage="read-write" />
<cache usage="nonstrict-read-write" />

<id name="id" column="categoryoptiongroupid">
<generator class="native" />
Expand All @@ -24,14 +24,14 @@
<property name="translations" type="jblTranslations"/>

<set name="members" table="categoryoptiongroupmembers">
<cache usage="read-write" />
<cache usage="nonstrict-read-write" />
<key column="categoryoptiongroupid" foreign-key="fk_categoryoptiongroupmembers_categoryoptionid" />
<many-to-many class="org.hisp.dhis.category.CategoryOption" column="categoryoptionid"
foreign-key="fk_categoryoptiongroupmembers_categoryoptiongroupid" />
</set>

<set name="groupSets" table="categoryoptiongroupsetmembers" inverse="true">
<cache usage="read-write" />
<cache usage="nonstrict-read-write" />
<key column="categoryoptiongroupid" />
<many-to-many class="org.hisp.dhis.category.CategoryOptionGroupSet" column="categoryoptiongroupsetid" />
</set>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<hibernate-mapping>
<class name="org.hisp.dhis.category.CategoryOptionGroupSet" table="categoryoptiongroupset">

<cache usage="read-write"/>
<cache usage="nonstrict-read-write"/>

<id name="id" column="categoryoptiongroupsetid">
<generator class="native"/>
Expand All @@ -26,7 +26,7 @@
<property name="dataDimension" column="datadimension" not-null="true"/>

<list name="members" table="categoryoptiongroupsetmembers">
<cache usage="read-write"/>
<cache usage="nonstrict-read-write"/>
<key column="categoryoptiongroupsetid"
foreign-key="fk_categoryoptiongroupsetmembers_categoryoptiongroupsetid"/>
<list-index column="sort_order" base="1"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<hibernate-mapping>
<class name="org.hisp.dhis.category.CategoryOptionGroupSetDimension" table="categoryoptiongroupsetdimension">

<cache usage="read-write" />
<cache usage="nonstrict-read-write" />

<id name="id" column="categoryoptiongroupsetdimensionid">
<generator class="native" />
Expand All @@ -16,7 +16,7 @@
foreign-key="fk_dimension_categoryoptiongroupsetid" />

<list name="items" table="categoryoptiongroupsetdimension_items">
<cache usage="read-write" />
<cache usage="nonstrict-read-write" />
<key column="categoryoptiongroupsetdimensionid" foreign-key="fk_dimension_items_categoryoptiongroupsetdimensionid" />
<list-index column="sort_order" />
<many-to-many class="org.hisp.dhis.category.CategoryOptionGroup" column="categoryoptiongroupid"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<hibernate-mapping>
<class name="org.hisp.dhis.dataelement.DataElement" table="dataelement">

<cache usage="read-write" />
<cache usage="nonstrict-read-write" />

<id name="id" column="dataelementid">
<generator class="native" />
Expand Down Expand Up @@ -54,19 +54,19 @@
<property name="url" />

<set name="groups" table="dataelementgroupmembers" inverse="true">
<cache usage="read-write" />
<cache usage="nonstrict-read-write" />
<key column="dataelementid" />
<many-to-many class="org.hisp.dhis.dataelement.DataElementGroup" column="dataelementgroupid" />
</set>

<set name="dataSetElements" table="datasetelement" inverse="true">
<cache usage="read-write" />
<cache usage="nonstrict-read-write" />
<key column="dataelementid" foreign-key="fk_datasetmembers_dataelementid" not-null="true" />
<one-to-many class="org.hisp.dhis.dataset.DataSetElement" />
</set>

<list name="aggregationLevels" table="dataelementaggregationlevels">
<cache usage="read-write" />
<cache usage="nonstrict-read-write" />
<key column="dataelementid" foreign-key="fk_dataelementaggregationlevels_dataelementid" />
<list-index column="sort_order" base="0" />
<element column="aggregationlevel" type="integer" />
Expand All @@ -81,7 +81,7 @@
foreign-key="fk_dataelement_commentoptionsetid" />

<list name="legendSets" table="dataelementlegendsets">
<cache usage="read-write" />
<cache usage="nonstrict-read-write" />
<key column="dataelementid" />
<list-index column="sort_order" base="0" />
<many-to-many class="org.hisp.dhis.legend.LegendSet" column="legendsetid" foreign-key="fk_dataelement_legendsetid" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<hibernate-mapping>
<class name="org.hisp.dhis.dataelement.DataElementGroup" table="dataelementgroup">

<cache usage="read-write" />
<cache usage="nonstrict-read-write" />

<id name="id" column="dataelementgroupid">
<generator class="native" />
Expand All @@ -24,14 +24,14 @@
<property name="translations" type="jblTranslations"/>

<set name="members" table="dataelementgroupmembers">
<cache usage="read-write" />
<cache usage="nonstrict-read-write" />
<key column="dataelementgroupid" foreign-key="fk_dataelementgroupmembers_dataelementgroupid" />
<many-to-many class="org.hisp.dhis.dataelement.DataElement" column="dataelementid"
foreign-key="fk_dataelementgroup_dataelementid" />
</set>

<set name="groupSets" table="dataelementgroupsetmembers" inverse="true">
<cache usage="read-write" />
<cache usage="nonstrict-read-write" />
<key column="dataelementgroupid" />
<many-to-many class="org.hisp.dhis.dataelement.DataElementGroupSet" column="dataelementgroupsetid" />
</set>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<class name="org.hisp.dhis.dataelement.DataElementGroupSet"
table="dataelementgroupset">

<cache usage="read-write"/>
<cache usage="nonstrict-read-write"/>

<id name="id" column="dataelementgroupsetid">
<generator class="native"/>
Expand All @@ -31,7 +31,7 @@
<property name="translations" type="jblTranslations"/>

<list name="members" table="dataelementgroupsetmembers">
<cache usage="read-write" />
<cache usage="nonstrict-read-write" />
<key column="dataelementgroupsetid" foreign-key="fk_dataelementgroupsetmembers_dataelementgroupsetid" />
<list-index column="sort_order" base="1" />
<many-to-many class="org.hisp.dhis.dataelement.DataElementGroup" column="dataelementgroupid"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<hibernate-mapping>
<class name="org.hisp.dhis.dataelement.DataElementGroupSetDimension" table="dataelementgroupsetdimension">

<cache usage="read-write" />
<cache usage="nonstrict-read-write" />

<id name="id" column="dataelementgroupsetdimensionid">
<generator class="native" />
Expand All @@ -16,7 +16,7 @@
foreign-key="fk_dimension_dataelementgroupsetid" />

<list name="items" table="dataelementgroupsetdimension_items">
<cache usage="read-write" />
<cache usage="nonstrict-read-write" />
<key column="dataelementgroupsetdimensionid" foreign-key="fk_dimension_items_dataelementgroupsetdimensionid" />
<list-index column="sort_order" />
<many-to-many class="org.hisp.dhis.dataelement.DataElementGroup" column="dataelementgroupid"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<hibernate-mapping>
<class name="org.hisp.dhis.dataelement.DataElementOperand" table="dataelementoperand">

<cache usage="read-write" />
<cache usage="nonstrict-read-write" />

<id name="id" column="dataelementoperandid">
<generator class="native" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<hibernate-mapping>
<class name="org.hisp.dhis.indicator.Indicator" table="indicator">

<cache usage="read-write" />
<cache usage="nonstrict-read-write" />

<id name="id" column="indicatorid">
<generator class="native" />
Expand Down Expand Up @@ -45,19 +45,19 @@
<property name="style" type="jbObjectStyle" column="style" />

<set name="groups" table="indicatorgroupmembers" inverse="true">
<cache usage="read-write" />
<cache usage="nonstrict-read-write" />
<key column="indicatorid" />
<many-to-many class="org.hisp.dhis.indicator.IndicatorGroup" column="indicatorgroupid" />
</set>

<set name="dataSets" table="datasetindicators" inverse="true">
<cache usage="read-write" />
<cache usage="nonstrict-read-write" />
<key column="indicatorid" />
<many-to-many class="org.hisp.dhis.dataset.DataSet" column="datasetid" />
</set>

<list name="legendSets" table="indicatorlegendsets">
<cache usage="read-write" />
<cache usage="nonstrict-read-write" />
<key column="indicatorid" />
<list-index column="sort_order" base="0" />
<many-to-many class="org.hisp.dhis.legend.LegendSet" column="legendsetid" foreign-key="fk_indicator_legendsetid"></many-to-many>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<hibernate-mapping>
<class name="org.hisp.dhis.indicator.IndicatorGroup" table="indicatorgroup">

<cache usage="read-write" />
<cache usage="nonstrict-read-write" />

<id name="id" column="indicatorgroupid">
<generator class="native" />
Expand All @@ -22,7 +22,7 @@
<property name="translations" type="jblTranslations"/>

<set name="members" table="indicatorgroupmembers">
<cache usage="read-write" />
<cache usage="nonstrict-read-write" />
<key column="indicatorgroupid" foreign-key="fk_indicatorgroupmembers_indicatorgroupid" />
<many-to-many class="org.hisp.dhis.indicator.Indicator" column="indicatorid"
foreign-key="fk_indicatorgroup_indicatorid" />
Expand All @@ -37,7 +37,7 @@
<property name="attributeValues" type="jsbAttributeValues"/>

<set name="groupSets" table="indicatorgroupsetmembers" inverse="true">
<cache usage="read-write" />
<cache usage="nonstrict-read-write" />
<key column="indicatorgroupid" />
<many-to-many class="org.hisp.dhis.indicator.IndicatorGroupSet" column="indicatorgroupsetid" />
</set>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<hibernate-mapping>
<class name="org.hisp.dhis.indicator.IndicatorGroupSet" table="indicatorgroupset">

<cache usage="read-write"/>
<cache usage="nonstrict-read-write"/>

<id name="id" column="indicatorgroupsetid">
<generator class="native"/>
Expand All @@ -28,7 +28,7 @@
<property name="translations" type="jblTranslations"/>

<list name="members" table="indicatorgroupsetmembers">
<cache usage="read-write"/>
<cache usage="nonstrict-read-write"/>
<key column="indicatorgroupsetid"
foreign-key="fk_indicatorgroupsetmembers_indicatorgroupsetid"/>
<list-index column="sort_order" base="1"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<hibernate-mapping>
<class name="org.hisp.dhis.indicator.IndicatorType" table="indicatortype">

<cache usage="read-write" />
<cache usage="nonstrict-read-write" />

<id name="id" column="indicatortypeid">
<generator class="native" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<hibernate-mapping>
<class name="org.hisp.dhis.legend.Legend" table="maplegend">

<cache usage="read-write" />
<cache usage="nonstrict-read-write" />

<id name="id" column="maplegendid">
<generator class="native" />
Expand Down
Loading
Loading