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.datadictionary.DataDictionary" table="datadictionary">
9
<cache usage="read-write"/>
11
<id name="id" column="datadictionaryid">
12
<generator class="native"/>
15
<property name="name">
16
<column name="name" not-null="true" unique="true" length="160"/>
19
<property name="description" type="text"/>
21
<property name="region"/>
23
<set name="dataElements" table="datadictionarydataelements">
24
<key column="datadictionaryid"/>
25
<many-to-many class="org.hisp.dhis.dataelement.DataElement" column="dataelementid"/>
28
<set name="indicators" table="datadictionaryindicators">
29
<key column="datadictionaryid"/>
30
<many-to-many class="org.hisp.dhis.indicator.Indicator" column="indicatorid"/>