[
https://issues.apache.org/jira/browse/OFBIZ-5844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arun Patidar updated OFBIZ-5844:
--------------------------------
Attachment: OFBIZ-5844-fix.patch
Thanks Scott for reviewing and reporting an issue.
Scott's comment in email:
The where() methods don't currently support creating an entity
condition in the style used above. You'll need to wrap those three
parameters in a EntityCondition.makeCondition() method, i.e.
paymentMethodTypes = EntityQuery.use(delegator).from("PaymentMethodType")
.where(EntityCondition.makeCondition("paymentMethodTypeId",
EntityOperator.NOT_EQUAL, "EXT_OFFLINE")).queryList();
Attached is a patch with suggested solution.
> Convert java files to EntityQuery
> ---------------------------------
>
> Key: OFBIZ-5844
> URL:
https://issues.apache.org/jira/browse/OFBIZ-5844> Project: OFBiz
> Issue Type: Improvement
> Components: ALL COMPONENTS
> Affects Versions: Trunk
> Reporter: Arun Patidar
> Assignee: Ashish Vijaywargiya
> Priority: Minor
> Attachments: OFBIZ-5844-Order.patch, OFBIZ-5844-Party.patch, OFBIZ-5844-Party.patch, OFBIZ-5844-Product.patch, OFBIZ-5844-fix.patch
>
>
> Recently [~lektran] has been converted java files to use Entity Query methods in place of Entity Engine methods. Components that has been converted are as below:
> - content
> - humanres
> - manufacturing
> - ordermgr (partially converted)
> - Replaced findOne() method in all components
> And commit revisions are: r1635380, r1635381, r1635382 and r1635383
> Remaining components to be convert are:
> - product
> - party
> - commonext
> - securityext
> - workeffort
> - ordermgr (remaining part)
> - specialpurpose
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)