~mortenoh/+junk/dhis2-detailed-import-export

« back to all changes in this revision

Viewing changes to dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/indicator/hibernate/IndicatorGroup.hbm.xml

  • Committer: larshelge at gmail
  • Date: 2009-03-03 16:46:36 UTC
  • Revision ID: larshelge@gmail.com-20090303164636-2sjlrquo7ib1gf7r
Initial check-in

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<!DOCTYPE hibernate-mapping PUBLIC
 
3
  "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
 
4
  "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
 
5
 
 
6
<hibernate-mapping>
 
7
  <class name="org.hisp.dhis.indicator.IndicatorGroup" table="indicatorgroup">
 
8
    
 
9
    <cache usage="read-write"/>
 
10
    
 
11
    <id name="id" column="indicatorgroupid">
 
12
      <generator class="native"/>
 
13
    </id>
 
14
    
 
15
    <property name="uuid">
 
16
      <column name="uuid" length="40"/>
 
17
    </property>
 
18
                
 
19
    <property name="name">
 
20
      <column name="name" not-null="true" unique="true" length="160"/>
 
21
    </property>
 
22
        
 
23
    <set name="members" table="indicatorgroupmembers">
 
24
      <key column="indicatorgroupid"/>
 
25
      <many-to-many class="org.hisp.dhis.indicator.Indicator" 
 
26
          column="indicatorid" foreign-key="fk_indicatorgroup_indicatorid"/>
 
27
    </set>
 
28
 
 
29
  </class>
 
30
</hibernate-mapping>