2
<!DOCTYPE hibernate-mapping PUBLIC
3
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
4
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
7
<class name="org.hisp.dhis.dataset.FrequencyOverrideAssociation"
8
table="frequencyoverrideassociation">
11
The source relationship is made not lazy so that Hibernate won't put a
12
proxy on the reference which cannot be casted to the desired subclass.
14
<key-many-to-one name="source" class="org.hisp.dhis.source.Source" lazy="false"
15
column="sourceid" foreign-key="fk_freqoverride_sourceid"/>
16
<key-many-to-one name="dataSet" class="org.hisp.dhis.dataset.DataSet"
17
column="datasetid" foreign-key="fk_freqoverride_datasetid"/>
19
<many-to-one name="periodType" class="org.hisp.dhis.period.PeriodType" lazy="false"
20
column="periodtypeid" not-null="true" foreign-key="fk_freqoverride_peiodtypeid"/>