summaryrefslogtreecommitdiffstats
path: root/sonar-db
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-07-04 17:30:52 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-07-07 17:06:59 +0200
commiteaf980f97bcc9dd745e52a18a9ef84111a537324 (patch)
treed650eb4c3fefe205fbea44574e97d4f1f689ddd3 /sonar-db
parent65e2080c62fccb8add6af7b3a7cd792562833604 (diff)
downloadsonarqube-eaf980f97bcc9dd745e52a18a9ef84111a537324.tar.gz
sonarqube-eaf980f97bcc9dd745e52a18a9ef84111a537324.zip
SONAR-7705 replace id by uuid in ViewsSnapshotDto
Diffstat (limited to 'sonar-db')
-rw-r--r--sonar-db/src/main/java/org/sonar/db/component/ViewsSnapshotDto.java10
-rw-r--r--sonar-db/src/main/resources/org/sonar/db/component/SnapshotMapper.xml2
2 files changed, 6 insertions, 6 deletions
diff --git a/sonar-db/src/main/java/org/sonar/db/component/ViewsSnapshotDto.java b/sonar-db/src/main/java/org/sonar/db/component/ViewsSnapshotDto.java
index d9e3f6c72f5..e568c44fa01 100644
--- a/sonar-db/src/main/java/org/sonar/db/component/ViewsSnapshotDto.java
+++ b/sonar-db/src/main/java/org/sonar/db/component/ViewsSnapshotDto.java
@@ -20,15 +20,15 @@
package org.sonar.db.component;
public class ViewsSnapshotDto {
- private Long id;
+ private String uuid;
private Long createdAt;
- public Long getId() {
- return id;
+ public String getUuid() {
+ return uuid;
}
- public void setId(Long id) {
- this.id = id;
+ public void setUuid(String uuid) {
+ this.uuid = uuid;
}
public Long getCreatedAt() {
diff --git a/sonar-db/src/main/resources/org/sonar/db/component/SnapshotMapper.xml b/sonar-db/src/main/resources/org/sonar/db/component/SnapshotMapper.xml
index 75f7c226753..c5e7f2e283c 100644
--- a/sonar-db/src/main/resources/org/sonar/db/component/SnapshotMapper.xml
+++ b/sonar-db/src/main/resources/org/sonar/db/component/SnapshotMapper.xml
@@ -30,7 +30,7 @@
</sql>
<sql id="viewsSnapshotColumns">
- s.id,
+ s.uuid,
s.created_at as createdAt
</sql>