~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/Indicator.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.Indicator" table="indicator">
 
8
    
 
9
    <cache usage="read-write"/>
 
10
    
 
11
    <id name="id" column="indicatorid">
 
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
        <property name="alternativeName">
 
24
      <column name="alternativename" not-null="false" unique="true" length="160"/>
 
25
    </property>
 
26
                
 
27
    <property name="shortName">
 
28
      <column name="shortname" not-null="true" unique="true" length="25"/>
 
29
    </property>
 
30
                
 
31
    <property name="code">
 
32
      <column name="code" not-null="false" unique="true" length="25"/>
 
33
    </property>
 
34
                
 
35
    <property name="description" type="text"/>
 
36
    
 
37
    <property name="annualized" column="annualized"/>
 
38
 
 
39
    <many-to-one name="indicatorType" class="org.hisp.dhis.indicator.IndicatorType"
 
40
      column="indicatortypeid" foreign-key="fk_indicator_indicatortypeid"/>
 
41
 
 
42
    <property name="numerator" column="numerator" type="text"/>
 
43
                
 
44
    <property name="numeratorDescription" column="numeratordescription" type="text"/>
 
45
                
 
46
    <property name="numeratorAggregationOperator" column="numeratoraggregationtype" length="16"/>
 
47
                
 
48
    <property name="denominator" column="denominator" type="text"/>
 
49
                
 
50
    <property name="denominatorDescription" column="denominatordescription" type="text"/>
 
51
                
 
52
    <property name="denominatorAggregationOperator" column="denominatoraggregationtype" length="16"/>
 
53
 
 
54
    <many-to-one name="extended" class="org.hisp.dhis.datadictionary.ExtendedDataElement" 
 
55
      column="extendeddataelementid" unique="true" cascade="all" foreign-key="fk_indicator_extendeddataelementid"/>
 
56
      
 
57
    <property name="sortOrder"/>
 
58
 
 
59
    <property name="url"/>
 
60
    
 
61
  </class>
 
62
</hibernate-mapping>