From: Simon Brandhof Date: Tue, 25 Mar 2014 08:11:38 +0000 (+0100) Subject: Fix loading of Hibernate rules on MyBatis X-Git-Tag: 4.3~288 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e93b51a5ca7b451e55d56632b2a1b314cf83f491;p=sonarqube.git Fix loading of Hibernate rules on MyBatis --- diff --git a/sonar-server/src/main/java/org/sonar/server/startup/RegisterNewProfiles.java b/sonar-server/src/main/java/org/sonar/server/startup/RegisterNewProfiles.java index dca04a3dcaa..c882fdf8a61 100644 --- a/sonar-server/src/main/java/org/sonar/server/startup/RegisterNewProfiles.java +++ b/sonar-server/src/main/java/org/sonar/server/startup/RegisterNewProfiles.java @@ -85,7 +85,7 @@ public class RegisterNewProfiles { session = sessionFactory.getSession(); // hibernate session can contain an invalid cache of rules - session.getEntityManager().clear(); + session.commit(); ListMultimap profilesByLanguage = loadDefinitions(); for (String language : profilesByLanguage.keySet()) {