dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #36230
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18547: skipping criteria optimization for Enums for now
------------------------------------------------------------
revno: 18547
committer: Morten Olav Hansen <mortenoh@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2015-03-10 15:33:22 +0530
message:
skipping criteria optimization for Enums for now
modified:
dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/query/DefaultQueryService.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/query/DefaultQueryService.java'
--- dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/query/DefaultQueryService.java 2015-03-09 08:57:50 +0000
+++ dhis-2/dhis-services/dhis-service-core/src/main/java/org/hisp/dhis/query/DefaultQueryService.java 2015-03-10 10:03:22 +0000
@@ -141,7 +141,7 @@
Property property = schema.getProperty( split[0] );
- if ( property == null || !property.isPersisted() || !property.isSimple() )
+ if ( property == null || !property.isPersisted() || !property.isSimple() || Enum.class.isAssignableFrom( property.getKlass() ) )
{
return null;
}