diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-04-21 17:30:16 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-04-21 17:34:06 +0200 |
commit | e58da285fd128f71ad8ac8c4a31890a25d64bc36 (patch) | |
tree | bdf75aad7cc9892804b1eadb6ffa8b9541a6344d /sonar-plugin-api | |
parent | c83af35f044f23b698ba23dca7097546b1eb2a13 (diff) | |
download | sonarqube-e58da285fd128f71ad8ac8c4a31890a25d64bc36.tar.gz sonarqube-e58da285fd128f71ad8ac8c4a31890a25d64bc36.zip |
SONAR-6256 Drop dependencies.from_resource_id and dependencies.to_resource_id
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/design/DependencyDto.java | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/design/DependencyDto.java b/sonar-plugin-api/src/main/java/org/sonar/api/design/DependencyDto.java index 80075f7ee0c..5e575bc09e2 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/design/DependencyDto.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/design/DependencyDto.java @@ -24,7 +24,11 @@ import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ReflectionToStringBuilder; import org.apache.commons.lang.builder.ToStringStyle; -import javax.persistence.*; +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import javax.persistence.Table; @Entity @Table(name = "dependencies") @@ -38,8 +42,8 @@ public class DependencyDto { @Column(name = "from_snapshot_id", updatable = true, nullable = false) private Integer fromSnapshotId; - @Column(name = "from_resource_id", updatable = true, nullable = false) - private Integer fromResourceId; + @Column(name = "from_component_uuid", updatable = true, nullable = false) + private String fromComponentUuid; @Column(name = "from_scope", updatable = true, nullable = true) private String fromScope; @@ -47,8 +51,8 @@ public class DependencyDto { @Column(name = "to_snapshot_id", updatable = true, nullable = false) private Integer toSnapshotId; - @Column(name = "to_resource_id", updatable = true, nullable = false) - private Integer toResourceId; + @Column(name = "to_component_uuid", updatable = true, nullable = false) + private String toComponentUuid; @Column(name = "to_scope", updatable = true, nullable = true) private String toScope; @@ -82,12 +86,12 @@ public class DependencyDto { return this; } - public Integer getFromResourceId() { - return fromResourceId; + public String getFromComponentUuid() { + return fromComponentUuid; } - public DependencyDto setFromResourceId(Integer fromResourceId) { - this.fromResourceId = fromResourceId; + public DependencyDto setFromComponentUuid(String fromComponentUuid) { + this.fromComponentUuid = fromComponentUuid; return this; } @@ -100,12 +104,12 @@ public class DependencyDto { return this; } - public Integer getToResourceId() { - return toResourceId; + public String getToComponentUuid() { + return toComponentUuid; } - public DependencyDto setToResourceId(Integer toResourceId) { - this.toResourceId = toResourceId; + public DependencyDto setToComponentUuid(String toComponentUuid) { + this.toComponentUuid = toComponentUuid; return this; } |