Advertisement
Guest User

Untitled

a guest
Mar 11th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 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="package org.openmrs.module.amrsordermodule">
  7. <joined-subclass name="org.openmrs.module.amrsordermodule.models.ProcedureOrder" extends="org.openmrs.Order"
  8. table="procedure_order" lazy="false">
  9.  
  10. <key column="order_id" not-null="true" on-delete="cascade"/>
  11.  
  12. <many-to-one name="procedureName" class="org.openmrs.Concept" column="procedure_name"/>
  13. <property name="clinicalHistory" type="java.lang.String" column="clinical_history" length="65535"/>
  14. <many-to-one name="frequency" class="org.openmrs.OrderFrequency"/>
  15. <property name="requiresSpecimen" type="boolean" column="requires_specimen"/>
  16. <many-to-one name="specimenSource" class="org.openmrs.Concept" column="specimen_source"/>
  17. <property name="numberOfRepeats" type="int" column="number_of_repeats"/>
  18. <property name="laterality" column="laterality" length="20" not-null="false">
  19. <type name="org.hibernate.type.EnumType">
  20. <param name="enumClass">org.openmrs.module.amrsordermodule.models.ProcedureOrder$Laterality</param>
  21. <param name="type">12</param>
  22. </type>
  23. </property>
  24. <property name="testNotes" type="java.lang.String" column="test_notes" length="65535"/>
  25.  
  26. </joined-subclass>
  27. </hibernate-mapping>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement