This commit is contained in:
crusader 2018-06-21 19:25:21 +09:00
parent 3595ea45b0
commit 62c6b878ae
2 changed files with 41 additions and 7 deletions

View File

@ -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;
}
/**

View File

@ -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;
}
}