Skip to content

Commit

Permalink
Fixed: SimpleMethod: FindByAnd never using EntityListIterator
Browse files Browse the repository at this point in the history
(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
  • Loading branch information
JacquesLeRoux committed Feb 10, 2017
1 parent cecb0bf commit b63b25c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public boolean exec(MethodContext methodContext) throws MiniLangException {
.from(entityName)
.where(whereCond)
.orderBy(orderByNames)
.queryList());
.queryIterator());
} else {
listFma.put(methodContext.getEnvMap(), EntityQuery.use(delegator)
.select(UtilMisc.toSet(fieldsToSelectListFma.get(methodContext.getEnvMap())))
Expand Down

0 comments on commit b63b25c

Please sign in to comment.