dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #25530
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 12689: Map, chart, pivot, added missing hibernate mapping for user grand children org unit
------------------------------------------------------------
revno: 12689
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2013-10-15 18:53:50 +0200
message:
Map, chart, pivot, added missing hibernate mapping for user grand children org unit
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/TableAlteror.java
dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/mapping/hibernate/MapView.hbm.xml
dhis-2/dhis-services/dhis-service-reporting/src/main/resources/org/hisp/dhis/chart/hibernate/Chart.hbm.xml
dhis-2/dhis-services/dhis-service-reporting/src/main/resources/org/hisp/dhis/reporttable/hibernate/ReportTable.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/java/org/hisp/dhis/startup/TableAlteror.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/TableAlteror.java 2013-10-10 15:32:40 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/startup/TableAlteror.java 2013-10-15 16:53:50 +0000
@@ -435,6 +435,7 @@
executeSql( "update reporttable set cumulative = false where cumulative is null" );
executeSql( "update reporttable set userorganisationunit = false where userorganisationunit is null" );
executeSql( "update reporttable set userorganisationunitchildren = false where userorganisationunitchildren is null" );
+ executeSql( "update reporttable set userorganisationunitgrandchildren = false where userorganisationunitgrandchildren is null" );
executeSql( "update reporttable set totals = true where totals is null" );
executeSql( "update reporttable set subtotals = true where subtotals is null" );
executeSql( "update reporttable set hideemptyrows = false where hideemptyrows is null" );
@@ -463,8 +464,9 @@
executeSql( "update chart set last4quarters = false where last4quarters is null" );
executeSql( "update chart set last2sixmonths = false where last2sixmonths is null" );
executeSql( "update chart set showdata = false where showdata is null" );
+ executeSql( "update chart set userorganisationunit = false where userorganisationunit is null" );
executeSql( "update chart set userorganisationunitchildren = false where userorganisationunitchildren is null" );
- executeSql( "update chart set userorganisationunit = false where userorganisationunit is null" );
+ executeSql( "update chart set userorganisationunitgrandchildren = false where userorganisationunitgrandchildren is null" );
executeSql( "update chart set hidetitle = false where hidetitle is null" );
// Move chart filters to chart_filters table
@@ -674,6 +676,7 @@
executeSql( "update mapview set userorganisationunit = false where userorganisationunit is null" );
executeSql( "update mapview set userorganisationunitchildren = false where userorganisationunitchildren is null" );
+ executeSql( "update mapview set userorganisationunitgrandchildren = false where userorganisationunitgrandchildren is null" );
}
private void upgradeChartRelativePeriods()
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/mapping/hibernate/MapView.hbm.xml'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/mapping/hibernate/MapView.hbm.xml 2013-09-19 12:56:27 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/org/hisp/dhis/mapping/hibernate/MapView.hbm.xml 2013-10-15 16:53:50 +0000
@@ -81,6 +81,8 @@
<property name="userOrganisationUnitChildren" />
+ <property name="userOrganisationUnitGrandChildren" />
+
<property name="legendType" />
<property name="method" />
=== modified file 'dhis-2/dhis-services/dhis-service-reporting/src/main/resources/org/hisp/dhis/chart/hibernate/Chart.hbm.xml'
--- dhis-2/dhis-services/dhis-service-reporting/src/main/resources/org/hisp/dhis/chart/hibernate/Chart.hbm.xml 2013-09-17 16:22:09 +0000
+++ dhis-2/dhis-services/dhis-service-reporting/src/main/resources/org/hisp/dhis/chart/hibernate/Chart.hbm.xml 2013-10-15 16:53:50 +0000
@@ -146,6 +146,8 @@
<property name="userOrganisationUnitChildren" />
+ <property name="userOrganisationUnitGrandChildren" />
+
<property name="showData" />
<property name="rewindRelativePeriods" />
=== modified file 'dhis-2/dhis-services/dhis-service-reporting/src/main/resources/org/hisp/dhis/reporttable/hibernate/ReportTable.hbm.xml'
--- dhis-2/dhis-services/dhis-service-reporting/src/main/resources/org/hisp/dhis/reporttable/hibernate/ReportTable.hbm.xml 2013-10-07 12:09:21 +0000
+++ dhis-2/dhis-services/dhis-service-reporting/src/main/resources/org/hisp/dhis/reporttable/hibernate/ReportTable.hbm.xml 2013-10-15 16:53:50 +0000
@@ -159,6 +159,8 @@
<property name="userOrganisationUnitChildren" />
+ <property name="userOrganisationUnitGrandChildren" />
+
<many-to-one name="legendSet" class="org.hisp.dhis.mapping.MapLegendSet" column="legendsetid"
foreign-key="fk_reporttable_legendsetid" />