~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/period/hibernate/Period.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 "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
 
3
  "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
 
4
 
 
5
<hibernate-mapping>
 
6
  <class name="org.hisp.dhis.period.Period" table="period">
 
7
    <id name="id" column="periodid">
 
8
      <generator class="native"/>
 
9
    </id>
 
10
    <properties name="uniqueGroup" unique="true">
 
11
      <many-to-one name="periodType" class="org.hisp.dhis.period.PeriodType" lazy="false" 
 
12
          column="periodtypeid" foreign-key="fk_period_periodtypeid"/>
 
13
      <property name="startDate" type="date" not-null="true" column="startdate"/>
 
14
      <property name="endDate" type="date" not-null="true" column="enddate"/>
 
15
    </properties>
 
16
  </class>
 
17
</hibernate-mapping>