~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/dataelement/hibernate/DataElementCategory.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.dataelement.DataElementCategory" table="dataelementcategory">
 
8
    
 
9
    <id name="id" column="categoryid">
 
10
      <generator class="native"/>
 
11
    </id>
 
12
                
 
13
    <property name="name">
 
14
      <column name="name" not-null="true" unique="true" length="160"/>
 
15
    </property>
 
16
    
 
17
    <set name="categoryOptions" table="categories_categoryoptions">
 
18
      <key column="categoryid"/>
 
19
      <many-to-many class="org.hisp.dhis.dataelement.DataElementCategoryOption" 
 
20
        column="categoryoptionid" foreign-key="fk_category_categoryoptionid"/>
 
21
    </set>
 
22
        
 
23
  </class>
 
24
</hibernate-mapping>
 
 
b'\\ No newline at end of file'