Guest User

mapping file

a guest
Dec 2nd, 2011
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  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 package="org.openmrs">
  7.  
  8. <class name="org.openmrs.hl7.HL7OutQueueDestination" table="hl7_out_queue_destination">
  9.  
  10. <id name="hoqdId" type="java.lang.Integer" column="hoqd_id" unsaved-value="0">
  11. <generator class="native">
  12. <param name="sequence">hl7_out_queue_destination_hoqd_id_seq</param>
  13. </generator>
  14. </id>
  15.  
  16. <discriminator column="hoqd_id" insert="false" />
  17.  
  18. <property name="name" type="java.lang.String"
  19. column="name" not-null="true" length="255" />
  20.  
  21. <property name="description" type="java.lang.String"
  22. column="description" not-null="false" length="1024" />
  23.  
  24. <property name="destination" type="java.lang.String"
  25. column="destination" not-null="true" length="255" />
  26.  
  27. <property name="dateCreated" type="java.util.Date"
  28. column="date_created" not-null="false" length="19" />
  29.  
  30. <many-to-one name="createdBy" class="User" not-null="true">
  31. <column name="created_by" />
  32. </many-to-one>
  33.  
  34. <property name="dateChanged" type="java.util.Date"
  35. column="date_changed" not-null="false" length="19" />
  36.  
  37. <many-to-one name="changedBy" class="User" not-null="false">
  38. <column name="changed_by" />
  39. </many-to-one>
  40.  
  41. <property name="dateRetired" type="java.util.Date"
  42. column="date_retired" not-null="false" length="19" />
  43.  
  44. <property name="retired" type="java.lang.Boolean" column="retired"
  45. length="1" not-null="true" />
  46.  
  47. <!-- <many-to-one name="retiredBy" class="User" not-null="false">
  48. <column name="retired_by" />
  49. </many-to-one> -->
  50.  
  51. <property name="retiredBy" type="java.lang.Integer"
  52. column="retire_by" not-null="false" length="5" />
  53.  
  54. <property name="retireReason" type="java.lang.String"
  55. column="retire_reason" not-null="false" length="255" />
  56.  
  57. </class>
  58. </hibernate-mapping>
  59.  
  60.  
Advertisement
Add Comment
Please, Sign In to add comment