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

« back to all changes in this revision

Viewing changes to dhis-2/dhis-services/dhis-service-organisationunit/src/main/resources/org/hisp/dhis/organisationunit/hibernate/OrganisationUnitGroup.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.organisationunit.OrganisationUnitGroup" table="orgunitgroup">
 
8
    <id name="id" column="orgunitgroupid">
 
9
      <generator class="native"/>
 
10
    </id>
 
11
 
 
12
                <property name="uuid">
 
13
                        <column name="uuid" length="40"/>
 
14
                </property>
 
15
 
 
16
    <property name="name">
 
17
      <column name="name" not-null="true" unique="true" length="160"/>
 
18
    </property>
 
19
    
 
20
    <set name="members" table="orgunitgroupmembers">
 
21
      <key column="orgunitgroupid"/>
 
22
      <many-to-many class="org.hisp.dhis.organisationunit.OrganisationUnit" 
 
23
          column="organisationunitid" foreign-key="fk_orgunitgroup_organisationunitid"/>
 
24
    </set>
 
25
    
 
26
  </class>
 
27
</hibernate-mapping>