Calendar.hbm.xml 1.1 KB

1234567891011121314151617181920212223242526
  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. Mapping file autogenerated by MyEclipse - Hibernate Tools
  6. -->
  7. <hibernate-mapping>
  8. <class name="inbasis.domain.cal.Calendar" table="CALENDAR">
  9. <id name="id" type="java.lang.Long">
  10. <column name="ID" precision="22" scale="0" />
  11. <generator class="assigned" />
  12. </id>
  13. <property name="calnum" type="java.lang.String">
  14. <column name="CALNUM" length="18" not-null="true" unique="true" />
  15. </property>
  16. <property name="description" type="java.lang.String">
  17. <column name="DESCRIPTION" length="50" />
  18. </property>
  19. <property name="startdate" type="java.util.Date">
  20. <column name="STARTDATE" length="7" not-null="true" />
  21. </property>
  22. <property name="enddate" type="java.util.Date">
  23. <column name="ENDDATE" length="7" not-null="true" />
  24. </property>
  25. </class>
  26. </hibernate-mapping>