package com.zy.nc.entity;
|
|
import com.baomidou.mybatisplus.annotations.TableField;
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import lombok.Data;
|
|
/**
|
*
|
* @TableName ncc_org_corp_wms
|
*/
|
@TableName(value ="ncc_org_corp_wms")
|
@Data
|
public class NccOrgCorpWms {
|
/**
|
*
|
*/
|
private String code;
|
|
/**
|
*
|
*/
|
private String name;
|
|
/**
|
*
|
*/
|
private String shortname;
|
|
@Override
|
public boolean equals(Object that) {
|
if (this == that) {
|
return true;
|
}
|
if (that == null) {
|
return false;
|
}
|
if (getClass() != that.getClass()) {
|
return false;
|
}
|
NccOrgCorpWms other = (NccOrgCorpWms) that;
|
return (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
|
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
|
&& (this.getShortname() == null ? other.getShortname() == null : this.getShortname().equals(other.getShortname()));
|
}
|
|
@Override
|
public int hashCode() {
|
final int prime = 31;
|
int result = 1;
|
result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
|
result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
|
result = prime * result + ((getShortname() == null) ? 0 : getShortname().hashCode());
|
return result;
|
}
|
|
@Override
|
public String toString() {
|
StringBuilder sb = new StringBuilder();
|
sb.append(getClass().getSimpleName());
|
sb.append(" [");
|
sb.append("Hash = ").append(hashCode());
|
sb.append(", code=").append(code);
|
sb.append(", name=").append(name);
|
sb.append(", shortname=").append(shortname);
|
sb.append("]");
|
return sb.toString();
|
}
|
}
|