1
0

RoutingTable.hbm.xml 1.6 KB

1234567891011121314151617181920212223242526272829
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
  3. <hibernate-mapping package="id.co.hanoman.service.config">
  4. <class name="RoutingTable" table="routing_table" lazy="false" >
  5. <id name="id" column="id" type="long">
  6. <generator class="native" />
  7. </id>
  8. <property name="codeStart" column="code_start" type="string" not-null="true" length="256" />
  9. <property name="codeEnd" column="code_end" type="string" not-null="true" length="256" />
  10. <property name="channel" column="channel" type="string" not-null="true" length="256" />
  11. <property name="startDate" column="start_date" type="java.util.Calendar" not-null="true"/>
  12. <property name="endDate" column="end_date" type="java.util.Calendar" not-null="false"/>
  13. <property name="queue" column="queue" type="string" not-null="true" length="256" />
  14. <property name="status" column="status" type="string" not-null="false" length="20" />
  15. <property name="subcodex" column="subcodex" type="string" not-null="false" length="256" />
  16. <!-- many-to-one name="subcodex" column="subcodex" class="Codex" not-null="false"/ -->
  17. <property name="createBy" column="create_by" type="string" not-null="false" length="256" />
  18. <property name="createDate" column="create_date" type="java.util.Calendar" not-null="false"/>
  19. <property name="modifiedBy" column="modified_by" type="string" not-null="false" length="256" />
  20. <property name="modifiedDate" column="modified_date" type="java.util.Calendar" not-null="false"/>
  21. </class>
  22. </hibernate-mapping>