← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20448: Unused import

 

------------------------------------------------------------
revno: 20448
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2015-10-01 17:20:39 +0200
message:
  Unused import
modified:
  dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/keyjsonvalue/hibernate/HibernateKeyJsonValueStore.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/keyjsonvalue/hibernate/HibernateKeyJsonValueStore.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/keyjsonvalue/hibernate/HibernateKeyJsonValueStore.java	2015-10-01 10:55:33 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/keyjsonvalue/hibernate/HibernateKeyJsonValueStore.java	2015-10-01 15:20:39 +0000
@@ -28,13 +28,12 @@
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+import java.util.List;
+
 import org.hibernate.criterion.Restrictions;
 import org.hisp.dhis.common.hibernate.HibernateIdentifiableObjectStore;
 import org.hisp.dhis.keyjsonvalue.KeyJsonValue;
 import org.hisp.dhis.keyjsonvalue.KeyJsonValueStore;
-import org.hisp.dhis.query.Query;
-
-import java.util.List;
 
 /**
  * @author Stian Sandvold
@@ -47,7 +46,8 @@
     @SuppressWarnings( "unchecked" )
     public List<String> getNamespaces()
     {
-        String hql = "SELECT distinct namespace FROM KeyJsonValue";
+        String hql = "select distinct namespace from KeyJsonValue";
+        
         return getQuery( hql ).list();
     }
 
@@ -55,7 +55,8 @@
     @SuppressWarnings( "unchecked" )
     public List<String> getKeysInNamespace( String namespace )
     {
-        String hql = "SELECT key FROM KeyJsonValue WHERE namespace = :namespace";
+        String hql = "select key from KeyJsonValue where namespace = :namespace";
+        
         return getQuery( hql ).setString( "namespace", namespace ).list();
     }