This commit is contained in:
crusader 2018-06-13 19:54:01 +09:00
parent e3b6c32ccd
commit 660795184b
3 changed files with 60 additions and 16 deletions

View File

@ -15,7 +15,7 @@ import java.util.Date;
public class Member { public class Member {
private Long id; private Long id;
private String email; private String email;
private transient String pw; private transient String password;
private String name; private String name;
private String phone; private String phone;
private String companyName; private String companyName;
@ -53,13 +53,13 @@ public class Member {
@Basic @Basic
@JsonIgnore @JsonIgnore
@Column(name = "PW", nullable = true, length = 64) @Column(name = "PASSWORD", nullable = true, length = 64)
public String getPw() { public String getPassword() {
return pw; return password;
} }
public void setPw(String pw) { public void setPassword(String password) {
this.pw = pw; this.password = password;
} }
@Basic @Basic

View File

@ -55,4 +55,25 @@ public class MetaPortType {
public void setCreateDate(Date createDate) { public void setCreateDate(Date createDate) {
this.createDate = createDate; this.createDate = createDate;
} }
public static enum Enum {
TCP((short) 1), UDP((short) 2),;
private final Short value;
/**
* @param value
*/
Enum(final Short value) {
this.value = value;
}
public Short getValue() {
return this.value;
}
public MetaPortType to() {
return new MetaPortType(this.value);
}
}
} }

View File

@ -1,15 +1,18 @@
package com.loafle.overflow.model.sensorconfig; package com.loafle.overflow.model.sensorconfig;
import com.loafle.overflow.model.meta.MetaCryptoType;
import com.loafle.overflow.model.meta.MetaIPType;
import com.loafle.overflow.model.meta.MetaPortType; import com.loafle.overflow.model.meta.MetaPortType;
/** /**
* Connection * Connection
*/ */
public class Connection { public class Connection {
private MetaIPType metaIPType;
private String ip; private String ip;
private Integer port;
private MetaPortType metaPortType; private MetaPortType metaPortType;
private boolean ssl; private Integer port;
private MetaCryptoType metaCryptoType;
public String getIp() { public String getIp() {
return ip; return ip;
@ -27,14 +30,6 @@ public class Connection {
this.port = port; this.port = port;
} }
public boolean isSsl() {
return ssl;
}
public void setSsl(boolean ssl) {
this.ssl = ssl;
}
/** /**
* @return the metaPortType * @return the metaPortType
*/ */
@ -48,4 +43,32 @@ public class Connection {
public void setMetaPortType(MetaPortType metaPortType) { public void setMetaPortType(MetaPortType metaPortType) {
this.metaPortType = metaPortType; this.metaPortType = metaPortType;
} }
/**
* @return the metaIPType
*/
public MetaIPType getMetaIPType() {
return metaIPType;
}
/**
* @param metaIPType the metaIPType to set
*/
public void setMetaIPType(MetaIPType metaIPType) {
this.metaIPType = metaIPType;
}
/**
* @return the metaCryptoType
*/
public MetaCryptoType getMetaCryptoType() {
return metaCryptoType;
}
/**
* @param metaCryptoType the metaCryptoType to set
*/
public void setMetaCryptoType(MetaCryptoType metaCryptoType) {
this.metaCryptoType = metaCryptoType;
}
} }