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("machining_data_nc")
|
public class MachiningDataNc implements Serializable {
|
/**
|
* primary key
|
*/
|
@TableId(type=IdType.AUTO)
|
private Long id;
|
|
/**
|
* machine id,对应machine.id
|
*/
|
//@Column(name = "machine_id")
|
private Integer machineId;
|
|
/**
|
* start time
|
*/
|
//@Column(name = "start_time")
|
private Integer startTime;
|
|
/**
|
* end time
|
*/
|
//@Column(name = "end_time")
|
private Integer endTime;
|
|
/**
|
* machine state
|
*/
|
private String state;
|
|
private static final long serialVersionUID = 1L;
|
|
|
public Long getId() {
|
return id;
|
}
|
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public Integer getMachineId() {
|
return machineId;
|
}
|
|
public void setMachineId(Integer machineId) {
|
this.machineId = machineId;
|
}
|
|
|
public Integer getStartTime() {
|
return startTime;
|
}
|
|
|
public void setStartTime(Integer startTime) {
|
this.startTime = startTime;
|
}
|
|
|
public Integer getEndTime() {
|
return endTime;
|
}
|
|
/**
|
* 设置end time
|
*
|
* @param endTime end time
|
*/
|
public void setEndTime(Integer endTime) {
|
this.endTime = endTime;
|
}
|
|
|
public String getState() {
|
return state;
|
}
|
|
public void setState(String state) {
|
this.state = state;
|
}
|
|
@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(", startTime=").append(startTime);
|
sb.append(", endTime=").append(endTime);
|
sb.append(", state=").append(state);
|
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;
|
}
|
MachiningDataNc other = (MachiningDataNc) 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.getStartTime() == null ? other.getStartTime() == null : this.getStartTime().equals(other.getStartTime()))
|
&& (this.getEndTime() == null ? other.getEndTime() == null : this.getEndTime().equals(other.getEndTime()))
|
&& (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()));
|
}
|
|
@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 + ((getStartTime() == null) ? 0 : getStartTime().hashCode());
|
result = prime * result + ((getEndTime() == null) ? 0 : getEndTime().hashCode());
|
result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
|
return result;
|
}
|
}
|