diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-04-29 12:27:54 +0200 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-04-29 12:38:09 +0200 |
commit | 693a1f7bb5071178546d2d2d636e0965aa226ef2 (patch) | |
tree | 8e35765832a264de787d3fb3ac932276a99d7866 /sonar-batch | |
parent | 9395d53849040fb6dacc3de2ea67e563cd16d80e (diff) | |
download | sonarqube-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.java | 4 |
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 |