openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mik...@apache.org
Subject svn commit: r790003 - /openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/AbstractQueryCache.java
Date Tue, 30 Jun 2009 23:53:32 GMT
Author: mikedd
Date: Tue Jun 30 23:53:31 2009
New Revision: 790003

URL: http://svn.apache.org/viewvc?rev=790003&view=rev
Log:
OPENJPA-1151 committing patch from Jody Grassel.
	modified:   openjpa-kernel/src/main/java/org/apache/openjpa/datacache/AbstractQueryCache.java

Modified:
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/AbstractQueryCache.java

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/AbstractQueryCache.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/AbstractQueryCache.java?rev=790003&r1=790002&r2=790003&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/AbstractQueryCache.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/AbstractQueryCache.java
Tue Jun 30 23:53:31 2009
@@ -120,12 +120,13 @@
         } else {
             Collection changedTypes = ev.getTypes();
             HashMap<String,Long> changedClasses = 
-                new HashMap<String,Long>(); 
+                new HashMap<String,Long>();
+            Long tstamp = new Long(System.currentTimeMillis());
             for (Object o: changedTypes) {
                 String name = ((Class) o).getName();
-                if(!changedClasses.containsKey(name))
-                    changedClasses.put(name, 
-                        new Long(System.currentTimeMillis()));
+                if(!changedClasses.containsKey(name)) {
+                    changedClasses.put(name, tstamp );
+                }
             }           
             // Now update entity timestamp map
             updateEntityTimestamp(changedClasses);



Mime
View raw message