← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5997: Minor fix

 

------------------------------------------------------------
revno: 5997
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2012-02-16 20:19:16 +0100
message:
  Minor fix
modified:
  dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataset/hibernate/HibernateLockExceptionStore.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/dataset/hibernate/HibernateLockExceptionStore.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataset/hibernate/HibernateLockExceptionStore.java	2012-02-16 18:48:14 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataset/hibernate/HibernateLockExceptionStore.java	2012-02-16 19:19:16 +0000
@@ -125,10 +125,9 @@
     @Override
     public void deleteCombination( DataSet dataSet, Period period )
     {
-        Session session = sessionFactory.getCurrentSession();
-
         final String hql = "DELETE FROM LockException WHERE dataSet=:dataSet AND period=:period";
-        Query query = session.createQuery( hql );
+        
+        Query query = getQuery( hql );
         query.setParameter( "dataSet", dataSet );
         query.setParameter( "period", period );