From e93b51a5ca7b451e55d56632b2a1b314cf83f491 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Tue, 25 Mar 2014 09:11:38 +0100 Subject: [PATCH] Fix loading of Hibernate rules on MyBatis --- .../main/java/org/sonar/server/startup/RegisterNewProfiles.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) { -- 2.39.5