diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-06-10 14:00:21 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-06-19 17:21:13 +0200 |
commit | 0825f36322508d39e6bdcdadb4ea8d4aaeb17671 (patch) | |
tree | 9014404491e588fa1d3ad8ad8b395ff79870173e /sonar-core | |
parent | e5bd8f4cb3936952c79ac741815cab69dfd1312e (diff) | |
download | sonarqube-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.java | 2 | ||||
-rw-r--r-- | sonar-core/src/main/resources/org/sonar/core/measure/custom/db/CustomMeasureMapper.xml | 4 |
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"> |