dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #10759
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 2951: Minor fixed
------------------------------------------------------------
revno: 2951
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2011-03-01 15:44:35 +0100
message:
Minor fixed
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/period/hibernate/HibernatePeriodStore.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/period/hibernate/HibernatePeriodStore.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/period/hibernate/HibernatePeriodStore.java 2011-03-01 08:15:27 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/period/hibernate/HibernatePeriodStore.java 2011-03-01 14:44:35 +0000
@@ -162,8 +162,8 @@
Session session = sessionFactory.getCurrentSession();
Criteria criteria = session.createCriteria( Period.class );
- criteria.add( Restrictions.ge( "endDate", startDate ) );
- criteria.add( Restrictions.le( "startDate", endDate ) );
+ criteria.add( Restrictions.gt( "endDate", startDate ) );
+ criteria.add( Restrictions.lt( "startDate", endDate ) );
return criteria.list();
}