← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 14748: TEI, renamed foreign key

 

------------------------------------------------------------
revno: 14748
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2014-04-08 17:34:26 +0200
message:
  TEI, renamed foreign key
modified:
  dhis-2/dhis-services/dhis-service-tracker/src/main/resources/org/hisp/dhis/trackedentity/hibernate/TrackedEntityInstance.hbm.xml


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-tracker/src/main/resources/org/hisp/dhis/trackedentity/hibernate/TrackedEntityInstance.hbm.xml'
--- dhis-2/dhis-services/dhis-service-tracker/src/main/resources/org/hisp/dhis/trackedentity/hibernate/TrackedEntityInstance.hbm.xml	2014-02-17 15:00:27 +0000
+++ dhis-2/dhis-services/dhis-service-tracker/src/main/resources/org/hisp/dhis/trackedentity/hibernate/TrackedEntityInstance.hbm.xml	2014-04-08 15:34:26 +0000
@@ -23,14 +23,13 @@
     </set>
     
     <many-to-one name="representative" class="org.hisp.dhis.trackedentity.TrackedEntityInstance" column="representativeid"
-      foreign-key="fk_representativeid" />
+      foreign-key="fk_trackedentityinstance_representativeid" />
 
     <many-to-one name="organisationUnit" class="org.hisp.dhis.organisationunit.OrganisationUnit" column="organisationunitid"
       foreign-key="fk_trackedentityinstance_organisationunitid" not-null="true" />
 	
-	<many-to-one name="trackedEntity"
-			class="org.hisp.dhis.trackedentity.TrackedEntity" column="trackedentityid"
-			foreign-key="fk_trackedentityinstance_trackedentityid" />
+	<many-to-one name="trackedEntity" class="org.hisp.dhis.trackedentity.TrackedEntity" 
+	   column="trackedentityid" foreign-key="fk_trackedentityinstance_trackedentityid" />
 	
   </class>
 </hibernate-mapping>