# HG changeset patch # User casties # Date 1485882535 -3600 # Node ID ae732119447f9d8c95ca1788795ee826f98a3601 # Parent 3e4b05a6cb477645f617fc2af8b98f7fd4f287a5 small fixes. diff -r 3e4b05a6cb47 -r ae732119447f src/main/java/org/mpi/openmind/cache/WrapperService.java --- a/src/main/java/org/mpi/openmind/cache/WrapperService.java Mon Jan 30 20:32:26 2017 +0100 +++ b/src/main/java/org/mpi/openmind/cache/WrapperService.java Tue Jan 31 18:08:55 2017 +0100 @@ -668,7 +668,7 @@ txLog.debug("** START save entity: user="+user+" entity="+entity.toSmallString()); // check if entity is up to date with cache if (!cache.isEntityCurrent(entity)) { - logger.error("Possible collision: Entity to save not current!"); + logger.warn("Possible collision: Entity to save not current!"); // create differences from cache EntityDiff diff = cache.diffEntityCache(entity, true); if (diff != null) { @@ -730,8 +730,10 @@ } } } else { - logger.warn("save without EditIntent!"); + logger.warn("Save with missing EditIntent!"); } + } else { + logger.warn("but no difference to cache found."); } } @@ -952,7 +954,7 @@ List tarRelList = this.cache.getRelsByTarId(tarId); - long start = System.currentTimeMillis(); + //long start = System.currentTimeMillis(); int count = 0; for (Relation rel : tarRelList) { if (stringEquals(relationName, rel.getOwnValue()) @@ -1035,14 +1037,10 @@ public List getTargetRelations(Entity target, String relationName, String srcObjClass, int maxResult) { - long start = System.currentTimeMillis(); + //long start = System.currentTimeMillis(); List list = new ArrayList(); List tarRelList = this.cache.getRelsByTarId(target.getId()); - /* - * if(coll == null){ coll = this.getPS().getTargetRelations(target, - * null, null, -1, false); cache.setRelsForTar(target.getId(), coll); } - */ int count = 0; for (Relation rel : tarRelList) { @@ -1058,8 +1056,7 @@ break; } } else { - logger.error("#########ERROR: Relation without source " - + rel.toString()); + logger.error("Relation without source: "+ rel.toString()); } } @@ -1082,7 +1079,7 @@ String relationName, String tarObjClass, int maxResult) throws Exception { - long start = System.currentTimeMillis(); + //long start = System.currentTimeMillis(); List list = new ArrayList(); // the collection coll should not be modified