y_ys79
2024-01-05 e5840972b6b17ec03bfc1069a9cacfe0cef189c6
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
package com.qianwen.mdc.domain;
 
import java.io.Serializable;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
 
@TableName("machine_protocol")
public class MachineProtocol implements Serializable {
    /**
     * primary key
     */
    @TableId(type=IdType.AUTO)
    private Integer id;
 
    /**
     * machine type
     */
    private String name;
 
    /**
     * version
     */
    private String version;
 
    /**
     * account
     */
    private String account;
 
    /**
     * password
     */
    private String password;
 
    /**
     * comment keys
     */
    //@Column(name = "comment_key")
    private String commentKey;
 
    /**
     * remark
     */
    private String remark;
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 获取primary key
     *
     * @return id - primary key
     */
    public Integer getId() {
        return id;
    }
 
    /**
     * 设置primary key
     *
     * @param id primary key
     */
    public void setId(Integer id) {
        this.id = id;
    }
 
    /**
     * 获取machine type
     *
     * @return name - machine type
     */
    public String getName() {
        return name;
    }
 
    /**
     * 设置machine type
     *
     * @param name machine type
     */
    public void setName(String name) {
        this.name = name;
    }
 
    /**
     * 获取version
     *
     * @return version - version
     */
    public String getVersion() {
        return version;
    }
 
    /**
     * 设置version
     *
     * @param version version
     */
    public void setVersion(String version) {
        this.version = version;
    }
 
    /**
     * 获取account
     *
     * @return account - account
     */
    public String getAccount() {
        return account;
    }
 
    /**
     * 设置account
     *
     * @param account account
     */
    public void setAccount(String account) {
        this.account = account;
    }
 
    /**
     * 获取password
     *
     * @return password - password
     */
    public String getPassword() {
        return password;
    }
 
    /**
     * 设置password
     *
     * @param password password
     */
    public void setPassword(String password) {
        this.password = password;
    }
 
    /**
     * 获取comment keys
     *
     * @return comment_key - comment keys
     */
    public String getCommentKey() {
        return commentKey;
    }
 
    /**
     * 设置comment keys
     *
     * @param commentKey comment keys
     */
    public void setCommentKey(String commentKey) {
        this.commentKey = commentKey;
    }
 
    /**
     * 获取remark
     *
     * @return remark - remark
     */
    public String getRemark() {
        return remark;
    }
 
    /**
     * 设置remark
     *
     * @param remark remark
     */
    public void setRemark(String remark) {
        this.remark = remark;
    }
 
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", version=").append(version);
        sb.append(", account=").append(account);
        sb.append(", password=").append(password);
        sb.append(", commentKey=").append(commentKey);
        sb.append(", remark=").append(remark);
        sb.append("]");
        return sb.toString();
    }
 
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MachineProtocol other = (MachineProtocol) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()))
            && (this.getAccount() == null ? other.getAccount() == null : this.getAccount().equals(other.getAccount()))
            && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
            && (this.getCommentKey() == null ? other.getCommentKey() == null : this.getCommentKey().equals(other.getCommentKey()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }
 
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
        result = prime * result + ((getAccount() == null) ? 0 : getAccount().hashCode());
        result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
        result = prime * result + ((getCommentKey() == null) ? 0 : getCommentKey().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }
}