From a520a87e29a1095e843321645b8014e71b8ef715 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Mon, 28 Nov 2011 17:30:29 +0100 Subject: SONAR-1974 Add RULE_FAILURES.RESOURCE_ID --- .../org/sonar/api/database/model/RuleFailureModel.java | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'sonar-plugin-api') 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) { -- cgit v1.2.3