package com.northglass.entity;
|
|
import java.util.Date;
|
|
import javax.persistence.MappedSuperclass;
|
import javax.persistence.Transient;
|
|
import com.northglass.listener.ServerConnection;
|
|
@MappedSuperclass
|
public abstract class Machine extends IdEntity {
|
|
private String number;
|
private String state;
|
private String connectState;
|
private int port;
|
private Date modifyTime;
|
|
private ServerConnection serverConnection = new ServerConnection();
|
|
public Machine() {}
|
|
public Machine(String number, String state, String connectState, int port) {
|
super();
|
this.number = number;
|
this.state = state;
|
this.connectState = connectState;
|
this.port = port;
|
}
|
|
public String getNumber() {
|
return number;
|
}
|
|
public void setNumber(String number) {
|
this.number = number;
|
}
|
|
public String getState() {
|
return state;
|
}
|
|
public void setState(String state) {
|
this.state = state;
|
}
|
|
public String getConnectState() {
|
return connectState;
|
}
|
|
public void setConnectState(String connectState) {
|
this.connectState = connectState;
|
}
|
|
public int getPort() {
|
return port;
|
}
|
|
public void setPort(int port) {
|
this.port = port;
|
}
|
|
public Date getModifyTime() {
|
return modifyTime;
|
}
|
|
public void setModifyTime(Date modifyTime) {
|
this.modifyTime = modifyTime;
|
}
|
|
@Transient
|
public ServerConnection getServerConnection() {
|
return serverConnection;
|
}
|
|
public void setServerConnection(ServerConnection serverConnection) {
|
this.serverConnection = serverConnection;
|
}
|
}
|