dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #42078
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 21494: change from all-delete-orphan to all for cascade in P.PTEA link, delete-orphan doesn't work well ...
------------------------------------------------------------
revno: 21494
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2015-12-18 11:11:51 +0100
message:
change from all-delete-orphan to all for cascade in P.PTEA link, delete-orphan doesn't work well with id objects and import scanner
modified:
dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/program/hibernate/Program.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/program/hibernate/Program.hbm.xml'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/program/hibernate/Program.hbm.xml 2015-12-03 16:47:14 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/program/hibernate/Program.hbm.xml 2015-12-18 10:11:51 +0000
@@ -54,7 +54,7 @@
<property name="displayFrontPageList" column="displayfrontpagelist" />
- <list name="programAttributes" cascade="all-delete-orphan">
+ <list name="programAttributes" cascade="all">
<key column="programid" />
<list-index column="sort_order" base="1" />
<one-to-many class="org.hisp.dhis.program.ProgramTrackedEntityAttribute" />