diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-03-25 18:15:27 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-03-25 18:15:27 +0100 |
commit | 0ce9a406bdd5a03773a26448e45ecac95fa51e6f (patch) | |
tree | 92aa5a1a170a296f894faccd95225b963b8d30e1 /sonar-plugin-api/src | |
parent | 385bec1cb26d806ec93a11605c98a4b6412ccf13 (diff) | |
download | sonarqube-0ce9a406bdd5a03773a26448e45ecac95fa51e6f.tar.gz sonarqube-0ce9a406bdd5a03773a26448e45ecac95fa51e6f.zip |
SONAR-4206 Insert a null user on rules notification when rules are removed from startup, and display 'System' on changelog console when there's no user provided.
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRuleChange.java | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRuleChange.java b/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRuleChange.java index 7527f03baf6..3fe44113c1b 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRuleChange.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRuleChange.java @@ -19,17 +19,29 @@ */ package org.sonar.api.rules; -import org.apache.commons.lang.builder.*; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ReflectionToStringBuilder; +import org.apache.commons.lang.builder.ToStringStyle; import org.sonar.api.database.BaseIdentifiable; import org.sonar.api.profiles.RulesProfile; +import javax.persistence.CascadeType; +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.EnumType; +import javax.persistence.Enumerated; +import javax.persistence.FetchType; +import javax.persistence.JoinColumn; +import javax.persistence.ManyToOne; +import javax.persistence.OneToMany; +import javax.persistence.Table; + import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.List; -import javax.persistence.*; - /** * A class to map a RuleChange to the hibernate model * @@ -39,7 +51,7 @@ import javax.persistence.*; @Table(name = "active_rule_changes") public class ActiveRuleChange extends BaseIdentifiable { - @Column(name = "user_name", updatable = false, nullable = false) + @Column(name = "user_name", updatable = false, nullable = true) private String userName; @ManyToOne(fetch = FetchType.EAGER) |