dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #13302
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 4221: Fixed bug could not add ReportGroup and ReportTableGroup. And fixed delete failed on a report tab...
------------------------------------------------------------
revno: 4221
committer: Hieu <hieu.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2011-07-28 10:25:28 +0700
message:
Fixed bug could not add ReportGroup and ReportTableGroup. And fixed delete failed on a report table group.
modified:
dhis-2/dhis-services/dhis-service-reporting/src/main/resources/org/hisp/dhis/report/hibernate/Report.hbm.xml
dhis-2/dhis-services/dhis-service-reporting/src/main/resources/org/hisp/dhis/reporttable/hibernate/ReportTable.hbm.xml
dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/deletion/DeletionHandler.java
--
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-reporting/src/main/resources/org/hisp/dhis/report/hibernate/Report.hbm.xml'
--- dhis-2/dhis-services/dhis-service-reporting/src/main/resources/org/hisp/dhis/report/hibernate/Report.hbm.xml 2011-07-21 03:29:35 +0000
+++ dhis-2/dhis-services/dhis-service-reporting/src/main/resources/org/hisp/dhis/report/hibernate/Report.hbm.xml 2011-07-28 03:25:28 +0000
@@ -21,7 +21,7 @@
<many-to-one name="reportTable" class="org.hisp.dhis.reporttable.ReportTable" column="reporttableid"
foreign-key="fk_report_reporttableid" />
- <set name="groups" table="reportgroupmembers">
+ <set name="groups" table="reportgroupmembers" inverse="true">
<cache usage="read-write" />
<key column="reportid" />
<many-to-many class="org.hisp.dhis.report.ReportGroup" column="reportgroupid" />
=== 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 2011-07-21 03:29:35 +0000
+++ dhis-2/dhis-services/dhis-service-reporting/src/main/resources/org/hisp/dhis/reporttable/hibernate/ReportTable.hbm.xml 2011-07-28 03:25:28 +0000
@@ -56,7 +56,7 @@
<many-to-many column="organisationunitid" class="org.hisp.dhis.organisationunit.OrganisationUnit" foreign-key="fk_reporttable_organisationunits_organisationunitid" />
</list>
- <set name="groups" table="reporttablegroupmembers">
+ <set name="groups" table="reporttablegroupmembers" inverse="true">
<cache usage="read-write" />
<key column="reporttableid" />
<many-to-many class="org.hisp.dhis.reporttable.ReportTableGroup" column="reporttablegroupid" />
=== modified file 'dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/deletion/DeletionHandler.java'
--- dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/deletion/DeletionHandler.java 2011-07-22 07:14:57 +0000
+++ dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/deletion/DeletionHandler.java 2011-07-28 03:25:28 +0000
@@ -396,7 +396,7 @@
{
}
- public boolean allowReportTableGroup( ReportTableGroup group )
+ public boolean allowDeleteReportTableGroup( ReportTableGroup group )
{
return true;
}