/*******************************************************************************
|
* Copyright (c) 2005, 2014 springside.github.io
|
*
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
*******************************************************************************/
|
package com.northglass.entity;
|
|
|
|
import javax.persistence.Entity;
|
import javax.persistence.JoinColumn;
|
import javax.persistence.ManyToOne;
|
import javax.persistence.Table;
|
import javax.persistence.Transient;
|
|
import com.northglass.listener.ServerConnection;
|
|
@Entity
|
@Table(name = "gmms_machine")
|
public class Machines extends IdEntity {
|
private String machineName;
|
private String ipAddress;
|
private int port;
|
private String state;
|
private String connectState;
|
private String workState;
|
private Long workId;
|
private String flag;
|
private String remarks;
|
|
private MachineType machineType;
|
|
private ServerConnection serverConnection = new ServerConnection();
|
|
|
|
public String getMachineName() {
|
return machineName;
|
}
|
|
public void setMachineName(String machineName) {
|
this.machineName = machineName;
|
}
|
|
|
public Long getWorkId() {
|
return workId;
|
}
|
|
public void setWorkId(Long workId) {
|
this.workId = workId;
|
}
|
|
public String getIpAddress() {
|
return ipAddress;
|
}
|
|
public void setIpAddress(String ipAddress) {
|
this.ipAddress = ipAddress;
|
}
|
|
public int getPort() {
|
return port;
|
}
|
|
public void setPort(int port) {
|
this.port = port;
|
}
|
|
public String getState() {
|
return state;
|
}
|
|
public void setState(String state) {
|
this.state = state;
|
}
|
|
public String getFlag() {
|
return flag;
|
}
|
|
public void setFlag(String flag) {
|
this.flag = flag;
|
}
|
|
public String getRemarks() {
|
return remarks;
|
}
|
|
public void setRemarks(String remarks) {
|
this.remarks = remarks;
|
}
|
|
public String getConnectState() {
|
return connectState;
|
}
|
|
public void setConnectState(String connectState) {
|
this.connectState = connectState;
|
}
|
|
public String getWorkState() {
|
return workState;
|
}
|
public void setWorkState(String workState) {
|
this.workState = workState;
|
}
|
|
@ManyToOne
|
@JoinColumn(name="machine_type_id")
|
public MachineType getMachineType() {
|
return machineType;
|
}
|
|
public void setMachineType(MachineType machineType) {
|
this.machineType = machineType;
|
}
|
|
|
@Transient
|
public ServerConnection getServerConnection() {
|
return serverConnection;
|
}
|
|
public void setServerConnection(ServerConnection serverConnection) {
|
this.serverConnection = serverConnection;
|
}
|
}
|