-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "TRUNK-5492 Replace Person and Patient hbm mapping file with a…
- Loading branch information
Showing
16 changed files
with
181 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
api/src/main/resources/org/openmrs/api/db/hibernate/Patient.hbm.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?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"> | ||
|
||
<joined-subclass name="Patient" table="patient" extends="Person"> | ||
|
||
<key column="patient_id" not-null="true" on-delete="cascade" /> | ||
|
||
<property name="patientId" type="int" not-null="true" | ||
column="patient_id" update="false" insert="false" /> | ||
|
||
<many-to-one name="creator" class="User" lazy="no-proxy" /> | ||
|
||
<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="voided" type="boolean" not-null="true" /> | ||
|
||
<many-to-one name="voidedBy" class="User" column="voided_by" /> | ||
|
||
<property name="dateVoided" type="java.util.Date" | ||
column="date_voided" length="19" /> | ||
|
||
<property name="voidReason" type="java.lang.String" | ||
column="void_reason" length="255" /> | ||
|
||
<property name="allergyStatus" type="java.lang.String" | ||
column="allergy_status" not-null="false" length="50" /> | ||
|
||
<!-- Associations --> | ||
|
||
<!-- bi-directional one-to-many association to PatientIdentifier --> | ||
<!-- list is unsorted due so that its put into a LinkedHashSet which uses .hashcode() instead of .compareTo() --> | ||
<set name="identifiers" lazy="true" cascade="all-delete-orphan" | ||
table="patient_identifier" inverse="true" sort="natural"> | ||
<key not-null="true" column="patient_id" /> | ||
<one-to-many class="PatientIdentifier" /> | ||
</set> | ||
|
||
</joined-subclass> | ||
|
||
</hibernate-mapping> |
Oops, something went wrong.