commit | b63b25c196650250665a00e0620b974cd591f9a9 | [log] [tgz] |
---|---|---|
author | Jacques Le Roux <jleroux@apache.org> | Fri Feb 10 18:46:04 2017 +0000 |
committer | Jacques Le Roux <jleroux@apache.org> | Fri Feb 10 18:46:04 2017 +0000 |
tree | f12c7ea33f31b3b9772c311d7274a9b693cf2a66 | |
parent | cecb0bfb0e711ea23f7c4feba21c1be72bb1c495 [diff] |
Fixed: SimpleMethod: FindByAnd never using EntityListIterator (OFBIZ-9152) Since the introduction of EntityQuery there was no distinction between a simple method tags <find-by-and use-iterator="true"> and <find-by-and use-iterator="false"> (except cache handling). There is a condition "if (useIterator)" but with entityQueries did use "[...].queryList()". Thanks: Mirko Vogelsmeier git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1782498 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/minilang/src/main/java/org/apache/ofbiz/minilang/method/entityops/FindByAnd.java b/framework/minilang/src/main/java/org/apache/ofbiz/minilang/method/entityops/FindByAnd.java index 46e3825..6e5f8a6 100644 --- a/framework/minilang/src/main/java/org/apache/ofbiz/minilang/method/entityops/FindByAnd.java +++ b/framework/minilang/src/main/java/org/apache/ofbiz/minilang/method/entityops/FindByAnd.java
@@ -90,7 +90,7 @@ .from(entityName) .where(whereCond) .orderBy(orderByNames) - .queryList()); + .queryIterator()); } else { listFma.put(methodContext.getEnvMap(), EntityQuery.use(delegator) .select(UtilMisc.toSet(fieldsToSelectListFma.get(methodContext.getEnvMap())))