diff src/main/java/org/mpi/openmind/cache/WrapperService.java @ 65:74cd973f6ece

more work on stale entity update problem. cache compare function works now.
author casties
date Fri, 27 Jan 2017 19:55:33 +0100
parents 83b209aa4226
children 3e4b05a6cb47
line wrap: on
line diff
--- a/src/main/java/org/mpi/openmind/cache/WrapperService.java	Thu Jan 26 19:37:25 2017 +0100
+++ b/src/main/java/org/mpi/openmind/cache/WrapperService.java	Fri Jan 27 19:55:33 2017 +0100
@@ -11,6 +11,7 @@
 
 import org.apache.commons.lang.StringUtils;
 import org.apache.log4j.Logger;
+import org.mpi.openmind.cache.CacheService.EntityDiff;
 import org.mpi.openmind.repository.bo.Attribute;
 import org.mpi.openmind.repository.bo.Entity;
 import org.mpi.openmind.repository.bo.Node;
@@ -666,6 +667,8 @@
 		// check if entity is up to date with cache
 		if (!cache.isEntityCurrent(entity)) {
 			logger.error("Entity to save not up to date with cache!");
+			EntityDiff diff = cache.diffEntityCache(entity, true);
+			logger.debug(diff);
 		}
 		
 		// save in database