openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgras...@apache.org
Subject svn commit: r1642995 - /openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/QueryCacheStoreQuery.java
Date Tue, 02 Dec 2014 19:44:17 GMT
Author: jgrassel
Date: Tue Dec  2 19:44:16 2014
New Revision: 1642995

URL: http://svn.apache.org/r1642995
Log:
OPENJPA-2508: Account for JOIN FETCH statements when loading from the Query Cache. - APICHK
Fix

Modified:
    openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/QueryCacheStoreQuery.java

Modified: openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/QueryCacheStoreQuery.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/QueryCacheStoreQuery.java?rev=1642995&r1=1642994&r2=1642995&view=diff
==============================================================================
--- openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/QueryCacheStoreQuery.java
(original)
+++ openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/QueryCacheStoreQuery.java
Tue Dec  2 19:44:16 2014
@@ -62,6 +62,8 @@ import org.apache.openjpa.util.ObjectNot
  */
 public class QueryCacheStoreQuery
     implements StoreQuery {
+    
+    private static final long serialVersionUID = -2732065409115707946L;
 
     private final StoreQuery _query;
     private final QueryCache _cache;
@@ -510,11 +512,20 @@ public class QueryCacheStoreQuery
     public static class CachedList extends AbstractList<Object>
         implements Serializable {
 
+        private static final long serialVersionUID = 4462687033124939390L;
+        
         private final QueryResult _res;
         private final boolean _proj;
         private final StoreContext _sctx;
         private final FetchConfiguration _fc;
         
+        public CachedList(QueryResult res, boolean proj, StoreContext ctx) {
+            _res = res;
+            _proj = proj;
+            _sctx = ctx;
+            _fc = null;
+        }
+        
         public CachedList(QueryResult res, boolean proj, StoreContext ctx, FetchConfiguration
fc) {
             _res = res;
             _proj = proj;



Mime
View raw message