diff options
author | Zipeng WU <zipeng.wu@sonarsource.com> | 2022-05-05 14:52:04 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-05-09 20:02:59 +0000 |
commit | 41af7cd13eed44de4c3941669bdb5968347f454a (patch) | |
tree | 050518f3725ee991fb0998f85129562693cffd7e /server/sonar-db-dao/src | |
parent | 3637ca1ca97c03bcc110007f9ec52c4cdef60632 (diff) | |
download | sonarqube-41af7cd13eed44de4c3941669bdb5968347f454a.tar.gz sonarqube-41af7cd13eed44de4c3941669bdb5968347f454a.zip |
SONAR-16364 Update Rule API to support multiple description sections
Diffstat (limited to 'server/sonar-db-dao/src')
-rw-r--r-- | server/sonar-db-dao/src/main/java/org/sonar/db/rule/RuleForIndexingDto.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/rule/RuleForIndexingDto.java b/server/sonar-db-dao/src/main/java/org/sonar/db/rule/RuleForIndexingDto.java index e7d7aa4e43b..50b92cd20c1 100644 --- a/server/sonar-db-dao/src/main/java/org/sonar/db/rule/RuleForIndexingDto.java +++ b/server/sonar-db-dao/src/main/java/org/sonar/db/rule/RuleForIndexingDto.java @@ -47,10 +47,11 @@ public class RuleForIndexingDto { private String internalKey; private String language; private boolean isExternal; + private int type; + private long createdAt; private long updatedAt; - private Set<RuleDescriptionSectionDto> ruleDescriptionSectionsDtos = new HashSet<>(); @VisibleForTesting @@ -200,4 +201,8 @@ public class RuleForIndexingDto { public void setTemplateRepository(String templateRepository) { this.templateRepository = templateRepository; } + + public void setType(int type) { + this.type = type; + } } |