~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/FrequencyOverrideAssociation.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.FrequencyOverrideAssociation"
 
8
    table="frequencyoverrideassociation">
 
9
    <composite-id>
 
10
      <!--
 
11
      The source relationship is made not lazy so that Hibernate won't put a
 
12
      proxy on the reference which cannot be casted to the desired subclass.
 
13
      -->
 
14
      <key-many-to-one name="source" class="org.hisp.dhis.source.Source" lazy="false" 
 
15
          column="sourceid" foreign-key="fk_freqoverride_sourceid"/>
 
16
      <key-many-to-one name="dataSet" class="org.hisp.dhis.dataset.DataSet"
 
17
          column="datasetid" foreign-key="fk_freqoverride_datasetid"/>
 
18
    </composite-id>
 
19
    <many-to-one name="periodType" class="org.hisp.dhis.period.PeriodType" lazy="false" 
 
20
        column="periodtypeid" not-null="true" foreign-key="fk_freqoverride_peiodtypeid"/>
 
21
  </class>
 
22
</hibernate-mapping>