]> source.dussan.org Git - sonarqube.git/commitdiff
Fix portential hibernate error
authorsimonbrandhof <simon.brandhof@gmail.com>
Fri, 29 Apr 2011 10:27:54 +0000 (12:27 +0200)
committersimonbrandhof <simon.brandhof@gmail.com>
Fri, 29 Apr 2011 10:38:09 +0000 (12:38 +0200)
sonar-batch/src/main/java/org/sonar/batch/index/ViolationPersister.java

index 2334c0f87147e647ee7820e91ad92a29132ed7dc..0b15823d5c7c9c854f58aec7f3603a1b2c6b7f1d 100644 (file)
@@ -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