dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #37645
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 19222: minor update to QueryEngine impl
------------------------------------------------------------
revno: 19222
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2015-06-01 16:33:06 +0700
message:
minor update to QueryEngine impl
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/query/CriteriaQueryEngine.java
dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml
--
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/query/CriteriaQueryEngine.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/query/CriteriaQueryEngine.java 2015-03-20 03:00:33 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/query/CriteriaQueryEngine.java 2015-06-01 09:33:06 +0000
@@ -50,12 +50,12 @@
/**
* @author Morten Olav Hansen <mortenoh@xxxxxxxxx>
*/
-public class CriteriaQueryEngine<T extends IdentifiableObject> implements QueryEngine<T>
+public class CriteriaQueryEngine<T> implements QueryEngine<T>
{
@Autowired
- private final List<HibernateGenericStore<? extends IdentifiableObject>> hibernateGenericStores = new ArrayList<>();
+ private final List<HibernateGenericStore<T>> hibernateGenericStores = new ArrayList<>();
- private Map<Class<?>, HibernateGenericStore<? extends IdentifiableObject>> stores = new HashMap<>();
+ private Map<Class<?>, HibernateGenericStore<T>> stores = new HashMap<>();
@Override
@SuppressWarnings( "unchecked" )
@@ -276,7 +276,7 @@
return;
}
- for ( HibernateGenericStore<? extends IdentifiableObject> store : hibernateGenericStores )
+ for ( HibernateGenericStore<T> store : hibernateGenericStores )
{
stores.put( store.getClazz(), store );
}
=== modified file 'dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml'
--- dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml 2015-05-28 20:17:44 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/resources/META-INF/dhis/beans.xml 2015-06-01 09:33:06 +0000
@@ -15,7 +15,7 @@
<bean id="org.hisp.dhis.schema.SchemaService" class="org.hisp.dhis.schema.DefaultSchemaService" />
- <bean id="org.hisp.dhis.query.QueryEngine" class="org.hisp.dhis.query.CriteriaQueryEngine" />
+ <bean id="org.hisp.dhis.query.CriteriaQueryEngine" class="org.hisp.dhis.query.CriteriaQueryEngine" />
<bean id="org.hisp.dhis.query.QueryService" class="org.hisp.dhis.query.DefaultQueryService" />