← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20503: set user creator on save/update of user credentials (mapped to creatoruserid column since userid ...

 

------------------------------------------------------------
revno: 20503
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2015-10-05 15:38:28 +0700
message:
  set user creator on save/update of user credentials (mapped to creatoruserid column since userid is already taken)
modified:
  dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/user/hibernate/UserCredentials.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-core/src/main/resources/org/hisp/dhis/user/hibernate/UserCredentials.hbm.xml'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/user/hibernate/UserCredentials.hbm.xml	2015-10-05 07:55:19 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/user/hibernate/UserCredentials.hbm.xml	2015-10-05 08:38:28 +0000
@@ -14,6 +14,8 @@
       </generator>
     </id>
 
+    <many-to-one name="user" class="org.hisp.dhis.user.User" column="creatoruserid" foreign-key="fk_user_userid" />
+
     <one-to-one name="userInfo" class="org.hisp.dhis.user.User" constrained="true" foreign-key="fk_user_userinfoid" />
 
     <property name="username" column="username" not-null="true" unique="true" />