From 62c6b878ae5ed82c321d949eb1e91bc7fe858261 Mon Sep 17 00:00:00 2001 From: crusader Date: Thu, 21 Jun 2018 19:25:21 +0900 Subject: [PATCH] ing --- .../overflow/model/discovery/Service.java | 30 ++++++++++++++----- .../overflow/model/infra/InfraService.java | 18 +++++++++++ 2 files changed, 41 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/loafle/overflow/model/discovery/Service.java b/src/main/java/com/loafle/overflow/model/discovery/Service.java index a698b6b..c9b7614 100644 --- a/src/main/java/com/loafle/overflow/model/discovery/Service.java +++ b/src/main/java/com/loafle/overflow/model/discovery/Service.java @@ -11,7 +11,9 @@ import com.loafle.overflow.model.meta.MetaCryptoType; public class Service { private MetaCryptoType metaCryptoType; - private String name; + private String key; + + private String description; private Date discoveredDate; @@ -34,17 +36,31 @@ public class Service { } /** - * @return the name + * @return the key */ - public String getName() { - return name; + public String getKey() { + return key; } /** - * @param name the name to set + * @param key the key to set */ - public void setName(String name) { - this.name = name; + public void setKey(String key) { + this.key = key; + } + + /** + * @return the description + */ + public String getDescription() { + return description; + } + + /** + * @param description the description to set + */ + public void setDescription(String description) { + this.description = description; } /** diff --git a/src/main/java/com/loafle/overflow/model/infra/InfraService.java b/src/main/java/com/loafle/overflow/model/infra/InfraService.java index 8c5dd7a..6127256 100644 --- a/src/main/java/com/loafle/overflow/model/infra/InfraService.java +++ b/src/main/java/com/loafle/overflow/model/infra/InfraService.java @@ -16,6 +16,7 @@ public class InfraService extends Infra { private MetaTargetServiceType metaTargetServiceType; private InfraHostPort infraHostPort; private MetaCryptoType metaCryptoType; + private String description; public InfraService() { super(); @@ -54,4 +55,21 @@ public class InfraService extends Infra { public void setMetaCryptoType(MetaCryptoType metaCryptoType) { this.metaCryptoType = metaCryptoType; } + + /** + * @return the description + */ + @Basic + @Column(name = "DESCRIPTION", nullable = true, length = 500) + public String getDescription() { + return description; + } + + /** + * @param description the description to set + */ + public void setDescription(String description) { + this.description = description; + } + }