← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 19951: use field name and not colum name for DE get by valueType services

 

------------------------------------------------------------
revno: 19951
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2015-09-03 11:20:56 +0700
message:
  use field name and not colum name for DE get by valueType services
modified:
  dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataelement/hibernate/HibernateDataElementStore.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/dataelement/hibernate/HibernateDataElementStore.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataelement/hibernate/HibernateDataElementStore.java	2015-09-03 04:03:56 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/dataelement/hibernate/HibernateDataElementStore.java	2015-09-03 04:20:56 +0000
@@ -105,14 +105,14 @@
     @SuppressWarnings( "unchecked" )
     public List<DataElement> getDataElementsByValueTypes( List<ValueType> valueTypes )
     {
-        return getCriteria( Restrictions.in( "vtype", valueTypes ) ).list();
+        return getCriteria( Restrictions.in( "valueType", valueTypes ) ).list();
     }
 
     @Override
     @SuppressWarnings( "unchecked" )
     public List<DataElement> getDataElementsByValueType( ValueType valueType )
     {
-        return getCriteria( Restrictions.eq( "vtype", valueType ) ).list();
+        return getCriteria( Restrictions.eq( "valueType", valueType ) ).list();
     }
 
     @Override