[jira] [Closed] (OFBIZ-9890) Having condition is ignored on queryList() and queryFirst() calls in EntityQuery

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Closed] (OFBIZ-9890) Having condition is ignored on queryList() and queryFirst() calls in EntityQuery

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-9890?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux closed OFBIZ-9890.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 16.11.06
                   17.12.01

Thanks Gareth,

The test passes with the patch. The patch makes sense to me (did not try)

Your patch is in
trunk r1849693  
R17 r1849694
R16 r1849695


> 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: Jacques Le Roux
>            Priority: Minor
>             Fix For: 17.12.01, 16.11.06
>
>         Attachments: OFBIZ-9890.patch
>
>
> 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
(v7.6.3#76005)