~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/dataset/hibernate/Section.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.dataset.Section" table="section">
 
8
    <id name="id" column="sectionid">
 
9
      <generator class="native"/>
 
10
    </id>
 
11
 
 
12
    <property name="name" not-null="true" unique="true" length="160"/>
 
13
    
 
14
    <property name="label" not-null="true" length="160"/>
 
15
 
 
16
    <many-to-one name="dataSet" class="org.hisp.dhis.dataset.DataSet" lazy="false"
 
17
        column="datasetid" not-null="true" foreign-key="fk_section_datasetid"/>
 
18
 
 
19
        <list name="dataElements" table="sectionmembers">
 
20
                <key column="sectionid"/>
 
21
                <list-index column="sectionelement" base="0"/>
 
22
                <many-to-many class="org.hisp.dhis.dataelement.DataElement" 
 
23
          column="dataelementid" foreign-key="fk_section_dataelementid"/>
 
24
        </list>
 
25
     
 
26
   <property name="sortOrder" column="sortorder"/>
 
27
 
 
28
  </class>
 
29
</hibernate-mapping>