Skip to content
Merged
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 @@ -124,11 +124,11 @@ public class CategoryCombo extends BaseMetadataObject
foreignKey = @ForeignKey(name = "fk_categorycombo_categoryid")))
@OrderColumn(name = "sort_order")
@ListIndexBase(1)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
private List<Category> categories = new ArrayList<>();

@OneToMany(fetch = FetchType.LAZY, mappedBy = "categoryCombo")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
private Set<CategoryOptionCombo> optionCombos = new HashSet<>();

@Column(name = "datadimensiontype", nullable = false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
@Entity
@Table(name = "categoryoption")
@Setter
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@JacksonXmlRootElement(localName = "categoryOption", namespace = DXF_2_0)
public class CategoryOption extends BaseMetadataObject
implements DimensionalItemObject, SystemDefaultMetadataObject, Serializable {
Expand Down Expand Up @@ -158,21 +158,21 @@ public class CategoryOption extends BaseMetadataObject
name = "categoryoption_organisationunits",
joinColumns = @JoinColumn(name = "categoryoptionid"),
inverseJoinColumns = @JoinColumn(name = "organisationunitid"))
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@BatchSize(size = 100)
private Set<OrganisationUnit> organisationUnits = new HashSet<>();

@ManyToMany(mappedBy = "categoryOptions")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@BatchSize(size = 100)
private Set<Category> categories = new HashSet<>();

@ManyToMany(mappedBy = "categoryOptions")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
private Set<CategoryOptionCombo> categoryOptionCombos = new HashSet<>();

@ManyToMany(mappedBy = "members")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
private Set<CategoryOptionGroup> groups = new HashSet<>();

@Type(type = "jsbObjectSharing")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
@Setter
@Entity
@Table(name = "indicatorgroup")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class IndicatorGroup extends BaseMetadataObject
implements IdentifiableObject, MetadataObject {
@Id
Expand Down Expand Up @@ -123,7 +123,7 @@ public class IndicatorGroup extends BaseMetadataObject
@JoinColumn(
name = "indicatorid",
foreignKey = @ForeignKey(name = "fk_indicatorgroup_indicatorid")))
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
private Set<Indicator> members = new HashSet<>();

@Type(type = "jsbAttributeValues")
Expand All @@ -135,7 +135,7 @@ public class IndicatorGroup extends BaseMetadataObject
private Sharing sharing = new Sharing();

@ManyToMany(mappedBy = "members", fetch = FetchType.LAZY)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
private Set<IndicatorGroupSet> groupSets = new HashSet<>();

// -------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
@Setter
@Entity
@Table(name = "indicatorgroupset")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class IndicatorGroupSet extends BaseMetadataObject
implements IdentifiableObject, MetadataObject {

Expand Down Expand Up @@ -134,7 +134,7 @@ public class IndicatorGroupSet extends BaseMetadataObject
foreignKey = @ForeignKey(name = "fk_indicatorgroupset_indicatorgroupid")))
@OrderColumn(name = "sort_order", nullable = false)
@ListIndexBase(1)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
private List<IndicatorGroup> members = new ArrayList<>();

// -------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
@Index(name = "maplegend_endvalue", columnList = "endvalue")
})
@JacksonXmlRootElement(localName = "legend", namespace = DxfNamespaces.DXF_2_0)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@Setter
public class Legend implements IdentifiableObject, EmbeddedObject {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public class LegendSet extends BaseMetadataObject implements IdentifiableObject,

@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true)
@JoinColumn(name = "maplegendsetid")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
private Set<Legend> legends = new HashSet<>();

public LegendSet() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public class OptionSet extends BaseMetadataObject implements IdentifiableObject,
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinColumn(name = "optionsetid", foreignKey = @ForeignKey(name = "fk_optionset_optionid"))
@OrderBy(value = "sortOrder ASC")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
private List<Option> options = new ArrayList<>();

@Type(type = "jsbAttributeValues")
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.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 @@ -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.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.IndicatorType" table="indicatortype">

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

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