[ https://issues.apache.org/jira/browse/OFBIZ-9890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16266524#comment-16266524 ]
Gareth Carter commented on OFBIZ-9890: -------------------------------------- This was actually found by [~rlhowell]. Trying to call queryList on an entity and providing a having condition. Of course it can be fixed by using queryIterator but IMO you shouldnt need too. Both queryList and queryFirst are shorthand methods and should support performing a query with a having condition. They always behave the same as queryIterator OR update the API docs to include features they do not support > Having condition is ignored on queryList() and queryFirst() calls in > EntityQuery > -------------------------------------------------------------------------------- > > Key: OFBIZ-9890 > URL: https://issues.apache.org/jira/browse/OFBIZ-9890 > Project: OFBiz > Issue Type: Bug > Components: ALL COMPONENTS > Affects Versions: Trunk > Reporter: Gareth Carter > Assignee: Prakhar Kumar > Priority: Minor > > queryList() and queryFirst() both call internal private query() method. This > method calls delegator.findList if a normal Entity/ViewEntity is used (not a > DVE). This has no option to include a having condition and so must opt to use > queryIterator(). Even queryCount() can use a having condition -- This message was sent by Atlassian JIRA (v6.4.14#64029)