verma-pawan opened a new pull request #76: URL: https://github.com/apache/ofbiz-framework/pull/76 (OFBIZ-11294) Added missing support for selectFields in queryCount and all the subsequent methods. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
dixitdeepak commented on a change in pull request #76: URL: https://github.com/apache/ofbiz-framework/pull/76#discussion_r415071220 ########## File path: framework/entity/src/main/java/org/apache/ofbiz/entity/GenericDelegator.java ########## @@ -1625,8 +1625,8 @@ public EntityListIterator findListIteratorByCondition(DynamicViewEntity dynamicV * @see org.apache.ofbiz.entity.Delegator#findCountByCondition(java.lang.String, org.apache.ofbiz.entity.condition.EntityCondition, org.apache.ofbiz.entity.condition.EntityCondition, org.apache.ofbiz.entity.util.EntityFindOptions) */ @Override - public long findCountByCondition(String entityName, EntityCondition whereEntityCondition, - EntityCondition havingEntityCondition, EntityFindOptions findOptions) throws GenericEntityException { + public long findCountByCondition(String entityName, EntityCondition whereEntityCondition, Set<String> fieldsToSelect Review comment: @verma-pawan I think we need to keep the existing method signature as well, and can pass null as fieldsToSelect to maintain backward compatibility. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
verma-pawan commented on a change in pull request #76: URL: https://github.com/apache/ofbiz-framework/pull/76#discussion_r415097884 ########## File path: framework/entity/src/main/java/org/apache/ofbiz/entity/GenericDelegator.java ########## @@ -1625,8 +1625,8 @@ public EntityListIterator findListIteratorByCondition(DynamicViewEntity dynamicV * @see org.apache.ofbiz.entity.Delegator#findCountByCondition(java.lang.String, org.apache.ofbiz.entity.condition.EntityCondition, org.apache.ofbiz.entity.condition.EntityCondition, org.apache.ofbiz.entity.util.EntityFindOptions) */ @Override - public long findCountByCondition(String entityName, EntityCondition whereEntityCondition, - EntityCondition havingEntityCondition, EntityFindOptions findOptions) throws GenericEntityException { + public long findCountByCondition(String entityName, EntityCondition whereEntityCondition, Set<String> fieldsToSelect Review comment: Thanks, @dixitdeepak totally agree. It slips off from my mind, on it. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
verma-pawan commented on a change in pull request #76: URL: https://github.com/apache/ofbiz-framework/pull/76#discussion_r415105478 ########## File path: framework/entity/src/main/java/org/apache/ofbiz/entity/GenericDelegator.java ########## @@ -1625,8 +1625,8 @@ public EntityListIterator findListIteratorByCondition(DynamicViewEntity dynamicV * @see org.apache.ofbiz.entity.Delegator#findCountByCondition(java.lang.String, org.apache.ofbiz.entity.condition.EntityCondition, org.apache.ofbiz.entity.condition.EntityCondition, org.apache.ofbiz.entity.util.EntityFindOptions) */ @Override - public long findCountByCondition(String entityName, EntityCondition whereEntityCondition, - EntityCondition havingEntityCondition, EntityFindOptions findOptions) throws GenericEntityException { + public long findCountByCondition(String entityName, EntityCondition whereEntityCondition, Set<String> fieldsToSelect Review comment: @dixitdeepak Done, please have look! ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
verma-pawan closed pull request #76: URL: https://github.com/apache/ofbiz-framework/pull/76 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
Free forum by Nabble | Edit this page |