dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #41628
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 21222: TrackedEntityDataValueAudit. Added unique id, and removed composite id.
------------------------------------------------------------
revno: 21222
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2015-11-27 16:24:32 +0100
message:
TrackedEntityDataValueAudit. Added unique id, and removed composite id.
removed:
dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/trackedentitydatavalueaudit/
modified:
dhis-2/dhis-api/src/main/java/org/hisp/dhis/trackedentitydatavalue/TrackedEntityDataValueAudit.java
dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/trackedentitydatavalue/hibernate/TrackedEntityDataValueAudit.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-api/src/main/java/org/hisp/dhis/trackedentitydatavalue/TrackedEntityDataValueAudit.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/trackedentitydatavalue/TrackedEntityDataValueAudit.java 2015-11-27 08:42:42 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/trackedentitydatavalue/TrackedEntityDataValueAudit.java 2015-11-27 15:24:32 +0000
@@ -45,6 +45,8 @@
public class TrackedEntityDataValueAudit
implements Serializable
{
+ private int id;
+
private DataElement dataElement;
private ProgramStageInstance programStageInstance;
@@ -113,6 +115,16 @@
// Getters and setters
// -------------------------------------------------------------------------
+ public int getId()
+ {
+ return id;
+ }
+
+ public void setId( int id )
+ {
+ this.id = id;
+ }
+
@JsonProperty
@JacksonXmlProperty( namespace = DxfNamespaces.DXF_2_0 )
public ProgramStageInstance getProgramStageInstance()
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/trackedentitydatavalue/hibernate/TrackedEntityDataValueAudit.hbm.xml'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/trackedentitydatavalue/hibernate/TrackedEntityDataValueAudit.hbm.xml 2015-11-27 08:42:42 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/trackedentitydatavalue/hibernate/TrackedEntityDataValueAudit.hbm.xml 2015-11-27 15:24:32 +0000
@@ -6,13 +6,16 @@
<hibernate-mapping>
<class name="org.hisp.dhis.trackedentitydatavalue.TrackedEntityDataValueAudit" table="trackedentitydatavalueaudit">
- <composite-id>
- <key-many-to-one name="programStageInstance" class="org.hisp.dhis.program.ProgramStageInstance"
+ <id name="id" column="trackedentitydatavalueauditid">
+ <generator class="native" />
+ </id>
+
+ <many-to-one name="programStageInstance" class="org.hisp.dhis.program.ProgramStageInstance"
column="programstageinstanceid" foreign-key="fk_entityinstancedatavalue_programstageinstanceid" />
- <key-many-to-one name="dataElement" class="org.hisp.dhis.dataelement.DataElement" column="dataelementid"
+
+ <many-to-one name="dataElement" class="org.hisp.dhis.dataelement.DataElement" column="dataelementid"
foreign-key="fk_entityinstancedatavalue_dataelementid" />
- </composite-id>
-
+
<property name="value" length="50000" />
<property name="timestamp" type="timestamp" />
=== removed directory 'dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/trackedentitydatavalueaudit'