]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-7705 replace id by uuid in ViewsSnapshotDto
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Mon, 4 Jul 2016 15:30:52 +0000 (17:30 +0200)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Thu, 7 Jul 2016 15:06:59 +0000 (17:06 +0200)
sonar-db/src/main/java/org/sonar/db/component/ViewsSnapshotDto.java
sonar-db/src/main/resources/org/sonar/db/component/SnapshotMapper.xml

index d9e3f6c72f583b9cd6f229a0c742cc24aafc0354..e568c44fa01cf0c9aef007b9600a22225f24a0dd 100644 (file)
 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() {
index 75f7c2267532eb33102378337447c351d3e31fc8..c5e7f2e283ce7b44bb21954931963391c1b7c353 100644 (file)
@@ -30,7 +30,7 @@
   </sql>
 
   <sql id="viewsSnapshotColumns">
-    s.id,
+    s.uuid,
     s.created_at as createdAt
   </sql>