2
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
3
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
6
<class name="org.hisp.dhis.period.Period" table="period">
7
<id name="id" column="periodid">
8
<generator class="native"/>
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"/>