Guest User

Untitled

a guest
Jun 25th, 2020
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <!--
  3.  
  4. This Source Code Form is subject to the terms of the Mozilla Public License,
  5. v. 2.0. If a copy of the MPL was not distributed with this file, You can
  6. obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
  7. the terms of the Healthcare Disclaimer located at http://openmrs.org/license.
  8.  
  9. Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
  10. graphic logo is a trademark of OpenMRS Inc.
  11.  
  12. -->
  13. <!DOCTYPE hibernate-mapping PUBLIC
  14. "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
  15. "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
  16. <hibernate-mapping>
  17. <!--
  18. Created by the Middlegen Hibernate plugin 2.1
  19.  
  20. http://boss.bekk.no/boss/middlegen/
  21. http://www.hibernate.org/
  22. -->
  23.  
  24. <class
  25. name="org.openmrs.FieldAnswer"
  26. table="field_answer"
  27. >
  28.  
  29. <composite-id>
  30. <key-many-to-one name="concept" class="org.openmrs.Concept" column="answer_id" />
  31. <key-many-to-one name="field" class="org.openmrs.Field" column="field_id" />
  32. </composite-id>
  33.  
  34. <property name="uuid" type="java.lang.String"
  35. column="uuid" length="38" unique="true" />
  36.  
  37. <property
  38. name="dateCreated"
  39. column="date_created"
  40. type="java.util.Date"
  41. length="19"
  42. />
  43.  
  44. <!-- Associations -->
  45.  
  46. <!-- bi-directional many-to-one association to Concept -->
  47. <!--
  48. <many-to-one
  49. name="concept"
  50. class="org.openmrs.Concept"
  51. not-null="true"
  52. >
  53. <column name="answer_id" />
  54. </many-to-one>
  55. -->
  56. <!-- bi-directional many-to-one association to Field -->
  57. <!--
  58. <many-to-one
  59. name="field"
  60. class="org.openmrs.Field"
  61. not-null="true"
  62. >
  63. <column name="field_id" />
  64. </many-to-one>
  65. -->
  66. <!-- bi-directional many-to-one association to User -->
  67. <many-to-one
  68. name="creator"
  69. class="org.openmrs.User"
  70. not-null="true"
  71. >
  72. <column name="creator" />
  73. </many-to-one>
  74. </class>
  75. </hibernate-mapping>
Add Comment
Please, Sign In to add comment