From: Julien Lancelot Date: Fri, 13 Dec 2013 10:02:06 +0000 (+0100) Subject: Temporary rename class X-Git-Tag: 4.2~989 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=706b253c903ad472d183a7e0918904032ea7e195;p=sonarqube.git Temporary rename class --- diff --git a/sonar-core/src/main/java/org/sonar/core/persistence/MyBatis.java b/sonar-core/src/main/java/org/sonar/core/persistence/MyBatis.java index 2fb00f2a0bc..b382b8cf02e 100644 --- a/sonar-core/src/main/java/org/sonar/core/persistence/MyBatis.java +++ b/sonar-core/src/main/java/org/sonar/core/persistence/MyBatis.java @@ -155,7 +155,7 @@ public class MyBatis implements BatchComponent, ServerComponent { SchemaMigrationMapper.class, SemaphoreMapper.class, UserMapper.class, WidgetMapper.class, WidgetPropertyMapper.class, MeasureMapper.class, SnapshotDataMapper.class, SnapshotSourceMapper.class, ActionPlanMapper.class, ActionPlanStatsMapper.class, NotificationQueueMapper.class, CharacteristicMapper.class, - GroupMembershipMapper.class, QualityProfileMapper.class, ActiveRuleMapper.class + GroupMembershipMapper.class, QualityProfileMapper.class, ActiveRuleMapper2.class }; loadMappers(conf, mappers); configureLogback(mappers); diff --git a/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/ActiveRuleDao.java b/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/ActiveRuleDao.java index 2346103e655..d3d0318cf35 100644 --- a/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/ActiveRuleDao.java +++ b/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/ActiveRuleDao.java @@ -33,7 +33,7 @@ public class ActiveRuleDao implements ServerComponent { } public void insert(ActiveRuleDto dto, SqlSession session) { - session.getMapper(ActiveRuleMapper.class).insert(dto); + session.getMapper(ActiveRuleMapper2.class).insert(dto); } public void insert(ActiveRuleDto dto) { @@ -47,7 +47,7 @@ public class ActiveRuleDao implements ServerComponent { } public void insert(ActiveRuleParamDto dto, SqlSession session) { - session.getMapper(ActiveRuleMapper.class).insertParameter(dto); + session.getMapper(ActiveRuleMapper2.class).insertParameter(dto); } public void insert(ActiveRuleParamDto dto) { diff --git a/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/ActiveRuleMapper2.java b/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/ActiveRuleMapper2.java new file mode 100644 index 00000000000..025043d14dd --- /dev/null +++ b/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/ActiveRuleMapper2.java @@ -0,0 +1,29 @@ +/* + * SonarQube, open source software quality management tool. + * Copyright (C) 2008-2013 SonarSource + * mailto:contact AT sonarsource DOT com + * + * SonarQube is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * SonarQube is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +package org.sonar.core.qualityprofile.db; + +public interface ActiveRuleMapper2 { + + void insert(ActiveRuleDto dto); + + void insertParameter(ActiveRuleParamDto dto); + +} diff --git a/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/ActiveruleMapper.java b/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/ActiveruleMapper.java deleted file mode 100644 index e4068570c50..00000000000 --- a/sonar-core/src/main/java/org/sonar/core/qualityprofile/db/ActiveruleMapper.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * SonarQube, open source software quality management tool. - * Copyright (C) 2008-2013 SonarSource - * mailto:contact AT sonarsource DOT com - * - * SonarQube is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 3 of the License, or (at your option) any later version. - * - * SonarQube is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ - -package org.sonar.core.qualityprofile.db; - -public interface ActiveRuleMapper { - - void insert(ActiveRuleDto dto); - - void insertParameter(ActiveRuleParamDto dto); - -} diff --git a/sonar-core/src/main/resources/org/sonar/core/qualityprofile/db/ActiveRuleMapper.xml b/sonar-core/src/main/resources/org/sonar/core/qualityprofile/db/ActiveRuleMapper.xml index f7178820d9d..bf8f1b86cb0 100644 --- a/sonar-core/src/main/resources/org/sonar/core/qualityprofile/db/ActiveRuleMapper.xml +++ b/sonar-core/src/main/resources/org/sonar/core/qualityprofile/db/ActiveRuleMapper.xml @@ -1,7 +1,7 @@ - + p.id,