廖井涛
2025-11-28 67f0be5a1d634ba3274fa9366ceacc3580f056b7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/*******************************************************************************
 * 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;
    }
}