mirror of https://github.com/apache/openjpa.git
OPENJPA-1151 committing patch from Jody Grassel.
modified: openjpa-kernel/src/main/java/org/apache/openjpa/datacache/AbstractQueryCache.java git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@790003 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
db2082dea4
commit
80dbd79952
|
@ -120,12 +120,13 @@ public abstract class AbstractQueryCache
|
||||||
} else {
|
} else {
|
||||||
Collection changedTypes = ev.getTypes();
|
Collection changedTypes = ev.getTypes();
|
||||||
HashMap<String,Long> changedClasses =
|
HashMap<String,Long> changedClasses =
|
||||||
new HashMap<String,Long>();
|
new HashMap<String,Long>();
|
||||||
|
Long tstamp = new Long(System.currentTimeMillis());
|
||||||
for (Object o: changedTypes) {
|
for (Object o: changedTypes) {
|
||||||
String name = ((Class) o).getName();
|
String name = ((Class) o).getName();
|
||||||
if(!changedClasses.containsKey(name))
|
if(!changedClasses.containsKey(name)) {
|
||||||
changedClasses.put(name,
|
changedClasses.put(name, tstamp );
|
||||||
new Long(System.currentTimeMillis()));
|
}
|
||||||
}
|
}
|
||||||
// Now update entity timestamp map
|
// Now update entity timestamp map
|
||||||
updateEntityTimestamp(changedClasses);
|
updateEntityTimestamp(changedClasses);
|
||||||
|
|
Loading…
Reference in New Issue