aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src/main/java/org/sonar/api/profiles
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2014-06-10 22:34:55 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2014-06-11 11:20:31 +0200
commit47a1c603fa19bf115bd3a0b9689705bd68a988ff (patch)
tree4094565dc815418ffdfdd9c47a8d9abd9caa6f88 /sonar-plugin-api/src/main/java/org/sonar/api/profiles
parenta774a62aec4318d3db04aaa8bc0a4cf741959f03 (diff)
downloadsonarqube-47a1c603fa19bf115bd3a0b9689705bd68a988ff.tar.gz
sonarqube-47a1c603fa19bf115bd3a0b9689705bd68a988ff.zip
SONAR-5007 remove Hibernate entities RulesProfile, ActiveRule and
ActiveRuleParam
Diffstat (limited to 'sonar-plugin-api/src/main/java/org/sonar/api/profiles')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/profiles/RulesProfile.java19
1 files changed, 0 insertions, 19 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/profiles/RulesProfile.java b/sonar-plugin-api/src/main/java/org/sonar/api/profiles/RulesProfile.java
index e44438d86c8..4800993bbde 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/profiles/RulesProfile.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/profiles/RulesProfile.java
@@ -42,8 +42,6 @@ import java.util.List;
/**
* This class is badly named. It should be "QualityProfile". Indeed it does not relate only to rules but to metric thresholds too.
*/
-@Entity
-@Table(name = "rules_profiles")
public class RulesProfile implements Cloneable {
/**
@@ -67,30 +65,13 @@ public class RulesProfile implements Cloneable {
@Deprecated
public static final String SUN_CONVENTIONS_NAME = "Sun checks";
- @Id
- @Column(name = "id")
- @GeneratedValue
private Integer id;
-
- @Column(name = "name", updatable = true, nullable = false)
private String name;
-
- @Column(name = "version", updatable = true, nullable = false)
private int version = 1;
-
- @Transient
private Boolean defaultProfile = Boolean.FALSE;
-
- @Column(name = "used_profile", updatable = true, nullable = false)
private Boolean used = Boolean.FALSE;
-
- @Column(name = "language", updatable = true, nullable = false, length = 20)
private String language;
-
- @Column(name = "parent_name", updatable = true, nullable = true)
private String parentName;
-
- @OneToMany(mappedBy = "rulesProfile", fetch = FetchType.LAZY, cascade = {CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REMOVE})
private List<ActiveRule> activeRules = Lists.newArrayList();
/**