From 693a1f7bb5071178546d2d2d636e0965aa226ef2 Mon Sep 17 00:00:00 2001 From: simonbrandhof Date: Fri, 29 Apr 2011 12:27:54 +0200 Subject: [PATCH] Fix portential hibernate error --- .../main/java/org/sonar/batch/index/ViolationPersister.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonar-batch/src/main/java/org/sonar/batch/index/ViolationPersister.java b/sonar-batch/src/main/java/org/sonar/batch/index/ViolationPersister.java index 2334c0f8714..0b15823d5c7 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/index/ViolationPersister.java +++ b/sonar-batch/src/main/java/org/sonar/batch/index/ViolationPersister.java @@ -57,11 +57,11 @@ public final class ViolationPersister { } model.setSnapshotId(snapshot.getId()); model.setChecksum(checksum); - session.save(model); + session.saveWithoutFlush(model); if (model.getPermanentId()==null) { model.setPermanentId(model.getId()); - session.save(model); + session.saveWithoutFlush(model); } // the following fields can have been changed -- 2.39.5