aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
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">