package com.qianwen.mdc.domain;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
@TableName("dnc_processing")
|
public class DncProcessing implements Serializable {
|
/**
|
* primary key
|
*/
|
//@Id
|
//@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@TableId(type=IdType.AUTO)
|
private Integer id;
|
|
/**
|
* machine id
|
*/
|
//@Column(name = "machine_id")
|
private Integer machineId;
|
|
/**
|
* nc program file name
|
*/
|
//@Column(name = "file_name")
|
private String fileName;
|
|
/**
|
* program name
|
*/
|
//@Column(name = "prog_name")
|
private String progName;
|
|
/**
|
* component number
|
*/
|
private String component;
|
|
/**
|
* process number
|
*/
|
private String process;
|
|
/**
|
* version
|
*/
|
private String version;
|
|
/**
|
* parse time
|
*/
|
private Date time;
|
|
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 id
|
*
|
* @return machine_id - machine id
|
*/
|
public Integer getMachineId() {
|
return machineId;
|
}
|
|
/**
|
* 设置machine id
|
*
|
* @param machineId machine id
|
*/
|
public void setMachineId(Integer machineId) {
|
this.machineId = machineId;
|
}
|
|
/**
|
* 获取nc program file name
|
*
|
* @return file_name - nc program file name
|
*/
|
public String getFileName() {
|
return fileName;
|
}
|
|
/**
|
* 设置nc program file name
|
*
|
* @param fileName nc program file name
|
*/
|
public void setFileName(String fileName) {
|
this.fileName = fileName;
|
}
|
|
/**
|
* 获取program name
|
*
|
* @return prog_name - program name
|
*/
|
public String getProgName() {
|
return progName;
|
}
|
|
/**
|
* 设置program name
|
*
|
* @param progName program name
|
*/
|
public void setProgName(String progName) {
|
this.progName = progName;
|
}
|
|
/**
|
* 获取component number
|
*
|
* @return component - component number
|
*/
|
public String getComponent() {
|
return component;
|
}
|
|
/**
|
* 设置component number
|
*
|
* @param component component number
|
*/
|
public void setComponent(String component) {
|
this.component = component;
|
}
|
|
/**
|
* 获取process number
|
*
|
* @return process - process number
|
*/
|
public String getProcess() {
|
return process;
|
}
|
|
/**
|
* 设置process number
|
*
|
* @param process process number
|
*/
|
public void setProcess(String process) {
|
this.process = process;
|
}
|
|
/**
|
* 获取version
|
*
|
* @return version - version
|
*/
|
public String getVersion() {
|
return version;
|
}
|
|
/**
|
* 设置version
|
*
|
* @param version version
|
*/
|
public void setVersion(String version) {
|
this.version = version;
|
}
|
|
/**
|
* 获取parse time
|
*
|
* @return time - parse time
|
*/
|
public Date getTime() {
|
return time;
|
}
|
|
/**
|
* 设置parse time
|
*
|
* @param time parse time
|
*/
|
public void setTime(Date time) {
|
this.time = time;
|
}
|
|
@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(", machineId=").append(machineId);
|
sb.append(", fileName=").append(fileName);
|
sb.append(", progName=").append(progName);
|
sb.append(", component=").append(component);
|
sb.append(", process=").append(process);
|
sb.append(", version=").append(version);
|
sb.append(", time=").append(time);
|
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;
|
}
|
DncProcessing other = (DncProcessing) that;
|
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
&& (this.getMachineId() == null ? other.getMachineId() == null : this.getMachineId().equals(other.getMachineId()))
|
&& (this.getFileName() == null ? other.getFileName() == null : this.getFileName().equals(other.getFileName()))
|
&& (this.getProgName() == null ? other.getProgName() == null : this.getProgName().equals(other.getProgName()))
|
&& (this.getComponent() == null ? other.getComponent() == null : this.getComponent().equals(other.getComponent()))
|
&& (this.getProcess() == null ? other.getProcess() == null : this.getProcess().equals(other.getProcess()))
|
&& (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()))
|
&& (this.getTime() == null ? other.getTime() == null : this.getTime().equals(other.getTime()));
|
}
|
|
@Override
|
public int hashCode() {
|
final int prime = 31;
|
int result = 1;
|
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
result = prime * result + ((getMachineId() == null) ? 0 : getMachineId().hashCode());
|
result = prime * result + ((getFileName() == null) ? 0 : getFileName().hashCode());
|
result = prime * result + ((getProgName() == null) ? 0 : getProgName().hashCode());
|
result = prime * result + ((getComponent() == null) ? 0 : getComponent().hashCode());
|
result = prime * result + ((getProcess() == null) ? 0 : getProcess().hashCode());
|
result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
|
result = prime * result + ((getTime() == null) ? 0 : getTime().hashCode());
|
return result;
|
}
|
}
|