aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-04-29 12:27:54 +0200
committersimonbrandhof <simon.brandhof@gmail.com>2011-04-29 12:38:09 +0200
commit693a1f7bb5071178546d2d2d636e0965aa226ef2 (patch)
tree8e35765832a264de787d3fb3ac932276a99d7866 /sonar-batch
parent9395d53849040fb6dacc3de2ea67e563cd16d80e (diff)
downloadsonarqube-693a1f7bb5071178546d2d2d636e0965aa226ef2.tar.gz
sonarqube-693a1f7bb5071178546d2d2d636e0965aa226ef2.zip
Fix portential hibernate error
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/index/ViolationPersister.java4
1 files 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