dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #26783
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 13247: Minor
------------------------------------------------------------
revno: 13247
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2013-12-16 11:32:17 +0100
message:
Minor
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/organisationunit/hibernate/HibernateOrganisationUnitStore.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-core/src/main/java/org/hisp/dhis/organisationunit/hibernate/HibernateOrganisationUnitStore.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/organisationunit/hibernate/HibernateOrganisationUnitStore.java 2013-12-09 21:32:59 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/organisationunit/hibernate/HibernateOrganisationUnitStore.java 2013-12-16 10:32:17 +0000
@@ -191,7 +191,8 @@
public Map<String, Set<String>> getOrganisationUnitDataSetAssocationMap()
{
final String sql = "select ds.uid as ds_uid, ou.uid as ou_uid from datasetsource d " +
- "left join organisationunit ou on ou.organisationunitid=d.sourceid left join dataset ds on ds.datasetid=d.datasetid";
+ "left join organisationunit ou on ou.organisationunitid=d.sourceid " +
+ "left join dataset ds on ds.datasetid=d.datasetid";
final Map<String, Set<String>> map = new HashMap<String, Set<String>>();
@@ -220,10 +221,10 @@
@Override
public Map<String, Set<String>> getOrganisationUnitGroupDataSetAssocationMap()
{
- final String sql = "select ds.uid as ds_uid, ou.uid as ou_uid from orgunitgroupdatasets ougds\n" +
- "\tleft join orgunitgroupmembers ougm on ougds.orgunitgroupid=ougm.orgunitgroupid\n" +
- "\tleft join organisationunit ou on ou.organisationunitid=ougm.organisationunitid\n" +
- "\tleft join dataset ds on ds.datasetid=ougds.datasetid;\n";
+ final String sql = "select ds.uid as ds_uid, ou.uid as ou_uid from orgunitgroupdatasets ougds " +
+ "left join orgunitgroupmembers ougm on ougds.orgunitgroupid=ougm.orgunitgroupid " +
+ "left join organisationunit ou on ou.organisationunitid=ougm.organisationunitid " +
+ "left join dataset ds on ds.datasetid=ougds.datasetid";
final Map<String, Set<String>> map = new HashMap<String, Set<String>>();
@@ -313,7 +314,6 @@
).list();
}
-
// -------------------------------------------------------------------------
// OrganisationUnitHierarchy
// -------------------------------------------------------------------------