Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0"?>
- <!--
- This Source Code Form is subject to the terms of the Mozilla Public License,
- v. 2.0. If a copy of the MPL was not distributed with this file, You can
- obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
- the terms of the Healthcare Disclaimer located at http://openmrs.org/license.
- Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
- graphic logo is a trademark of OpenMRS Inc.
- -->
- <!DOCTYPE hibernate-mapping PUBLIC
- "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
- "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
- <hibernate-mapping>
- <!--
- Created by the Middlegen Hibernate plugin 2.1
- http://boss.bekk.no/boss/middlegen/
- http://www.hibernate.org/
- -->
- <class
- name="org.openmrs.FieldAnswer"
- table="field_answer"
- >
- <composite-id>
- <key-many-to-one name="concept" class="org.openmrs.Concept" column="answer_id" />
- <key-many-to-one name="field" class="org.openmrs.Field" column="field_id" />
- </composite-id>
- <property name="uuid" type="java.lang.String"
- column="uuid" length="38" unique="true" />
- <property
- name="dateCreated"
- column="date_created"
- type="java.util.Date"
- length="19"
- />
- <!-- Associations -->
- <!-- bi-directional many-to-one association to Concept -->
- <!--
- <many-to-one
- name="concept"
- class="org.openmrs.Concept"
- not-null="true"
- >
- <column name="answer_id" />
- </many-to-one>
- -->
- <!-- bi-directional many-to-one association to Field -->
- <!--
- <many-to-one
- name="field"
- class="org.openmrs.Field"
- not-null="true"
- >
- <column name="field_id" />
- </many-to-one>
- -->
- <!-- bi-directional many-to-one association to User -->
- <many-to-one
- name="creator"
- class="org.openmrs.User"
- not-null="true"
- >
- <column name="creator" />
- </many-to-one>
- </class>
- </hibernate-mapping>
Add Comment
Please, Sign In to add comment