aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-06-10 14:00:21 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-06-19 17:21:13 +0200
commit0825f36322508d39e6bdcdadb4ea8d4aaeb17671 (patch)
tree9014404491e588fa1d3ad8ad8b395ff79870173e /sonar-core
parente5bd8f4cb3936952c79ac741815cab69dfd1312e (diff)
downloadsonarqube-0825f36322508d39e6bdcdadb4ea8d4aaeb17671.tar.gz
sonarqube-0825f36322508d39e6bdcdadb4ea8d4aaeb17671.zip
Copy custom measures in compute engine
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/measure/custom/db/CustomMeasureMapper.java2
-rw-r--r--sonar-core/src/main/resources/org/sonar/core/measure/custom/db/CustomMeasureMapper.xml4
2 files changed, 3 insertions, 3 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/measure/custom/db/CustomMeasureMapper.java b/sonar-core/src/main/java/org/sonar/core/measure/custom/db/CustomMeasureMapper.java
index 4b609b7fee2..bfc7eb929ea 100644
--- a/sonar-core/src/main/java/org/sonar/core/measure/custom/db/CustomMeasureMapper.java
+++ b/sonar-core/src/main/java/org/sonar/core/measure/custom/db/CustomMeasureMapper.java
@@ -32,7 +32,7 @@ public interface CustomMeasureMapper {
List<CustomMeasureDto> selectByMetricId(int id);
- List<CustomMeasureDto> selectByComponentId(long id);
+ List<CustomMeasureDto> selectByComponentUuid(String s);
void delete(long id);
diff --git a/sonar-core/src/main/resources/org/sonar/core/measure/custom/db/CustomMeasureMapper.xml b/sonar-core/src/main/resources/org/sonar/core/measure/custom/db/CustomMeasureMapper.xml
index a3465ed2b90..12a61bdf359 100644
--- a/sonar-core/src/main/resources/org/sonar/core/measure/custom/db/CustomMeasureMapper.xml
+++ b/sonar-core/src/main/resources/org/sonar/core/measure/custom/db/CustomMeasureMapper.xml
@@ -29,11 +29,11 @@
where m.metric_id=#{metricId}
</select>
- <select id="selectByComponentId" resultType="CustomMeasure">
+ <select id="selectByComponentUuid" resultType="CustomMeasure">
select
<include refid="selectColumns"/>
from manual_measures m
- where m.resource_id=#{componentId}
+ where m.component_uuid=#{componentUuid}
</select>
<insert id="insert" parameterType="CustomMeasure" useGeneratedKeys="true" keyColumn="id" keyProperty="id">