svn commit: r1621122 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java

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

svn commit: r1621122 - /ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java

adrianc
Author: adrianc
Date: Thu Aug 28 11:36:39 2014
New Revision: 1621122

URL: http://svn.apache.org/r1621122
Log:
Found a bug in GenericDelegator.java. No time to fix it now, so leaving a FIXME comment.

Modified:
    ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java

Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java?rev=1621122&r1=1621121&r2=1621122&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/GenericDelegator.java Thu Aug 28 11:36:39 2014
@@ -1317,6 +1317,11 @@ public class GenericDelegator implements
 
             if (doCacheClear) {
                 // always clear cache before the operation
+                /*
+                 *  FIXME: This does not work - we still have a stale cache
+                 *  because the "store by" condition might be different than
+                 *  the "find by" condition.
+                 */
                 this.clearCacheLineByCondition(entityName, condition);
             }
             ModelEntity modelEntity = getModelReader().getModelEntity(entityName);