/
EncounterRole.hbm.xml
51 lines (33 loc) · 1.96 KB
/
EncounterRole.hbm.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?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 package="org.openmrs" >
<class name="EncounterRole" table="encounter_role" batch-size="25">
<id name="encounterRoleId" type="int" column="encounter_role_id"
unsaved-value="0">
<generator class="native">
<param name="sequence">encounter_role_encounter_role_id_seq</param>
</generator>
</id>
<property name="name" type="java.lang.String" length="50" not-null="true" unique="true" />
<property name="description" type="java.lang.String" length="1024" />
<many-to-one name="creator" class="org.openmrs.User" not-null="true" />
<property name="dateCreated" type="java.util.Date" column="date_created" not-null="true" length="19" />
<many-to-one name="changedBy" class="User" column="changed_by" />
<property name="dateChanged" type="java.util.Date" column="date_changed" length="19" />
<property name="retired" type="java.lang.Boolean" length="1" not-null="true" />
<property name="dateRetired" type="java.util.Date" column="date_retired" not-null="false" length="19" />
<many-to-one name="retiredBy" class="org.openmrs.User" not-null="false" column="retired_by" />
<property name="retireReason" type="java.lang.String" column="retire_reason" length="255" />
<property name="uuid" type="java.lang.String" column="uuid" length="38" unique="true" />
</class>
</hibernate-mapping>