aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-11-28 17:30:29 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2011-11-28 17:30:29 +0100
commita520a87e29a1095e843321645b8014e71b8ef715 (patch)
tree11fa5650cb975dc241686ba04d93d2ed6f36a837 /sonar-plugin-api
parentc7ea2f00209fe9ff676ffe3ab56f32d749299c14 (diff)
downloadsonarqube-a520a87e29a1095e843321645b8014e71b8ef715.tar.gz
sonarqube-a520a87e29a1095e843321645b8014e71b8ef715.zip
SONAR-1974 Add RULE_FAILURES.RESOURCE_ID
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/database/model/RuleFailureModel.java16
1 files changed, 14 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/database/model/RuleFailureModel.java b/sonar-plugin-api/src/main/java/org/sonar/api/database/model/RuleFailureModel.java
index a3455a630fa..2a9c16dea34 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/database/model/RuleFailureModel.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/database/model/RuleFailureModel.java
@@ -38,6 +38,9 @@ public class RuleFailureModel extends BaseIdentifiable {
@Column(name = "snapshot_id", nullable = true)
protected Integer snapshotId;
+ @Column(name = "resource_id", nullable = true)
+ protected Integer resourceId;
+
@Column(name = "rule_id", updatable = false, nullable = false)
private Integer ruleId;
@@ -115,8 +118,17 @@ public class RuleFailureModel extends BaseIdentifiable {
return snapshotId;
}
- public void setSnapshotId(Integer snapshotId) {
- this.snapshotId = snapshotId;
+ public void setSnapshotId(Integer i) {
+ this.snapshotId = i;
+ }
+
+ public Integer getResourceId() {
+ return resourceId;
+ }
+
+ public RuleFailureModel setResourceId(Integer i) {
+ this.resourceId = i;
+ return this;
}
public void setPriority(RulePriority priority) {