Author: jacopoc
Date: Mon Mar  9 08:34:30 2015
New Revision: 1665154

URL: http://svn.apache.org/r1665154
Log:
Fix for bug causing an error trace when a query was executed (with cache on) 
using conditions created using EntityConditionBuilder:

java.lang.UnsupportedOperationException: hashCode: 
org.ofbiz.entity.condition.EntityConditionBuilder$ConditionHolder
     [java] java.lang.UnsupportedOperationException: hashCode: 
org.ofbiz.entity.condition.EntityConditionBuilder$ConditionHolder

Thanks to Deepak Dixit for the bug report and for his tests.


Modified:
    
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityConditionBuilder.java

Modified: 
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityConditionBuilder.java
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityConditionBuilder.java?rev=1665154&r1=1665153&r2=1665154&view=diff
==============================================================================
--- 
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityConditionBuilder.java
 (original)
+++ 
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityConditionBuilder.java
 Mon Mar  9 08:34:30 2015
@@ -74,6 +74,14 @@ public class EntityConditionBuilder exte
         public EntityCondition freeze() {
             return condition.freeze();
         }
+
+        public int hashCode() {
+            return condition.hashCode();
+        }
+        public boolean equals(Object obj) {
+            return condition.equals(obj);
+        }
+
     }
 
     @Override


Reply via email to