元气优淘服务端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
youtao/service/src/main/java/com/hfkj/entity/SecDictionaryKey.java

75 lines
1.9 KiB

package com.hfkj.entity;
import java.io.Serializable;
/**
* sec_dictionary
* @author
*/
public class SecDictionaryKey implements Serializable {
/**
* 码值类型
*/
private String codeType;
/**
* 码值
*/
private String codeValue;
private static final long serialVersionUID = 1L;
public String getCodeType() {
return codeType;
}
public void setCodeType(String codeType) {
this.codeType = codeType;
}
public String getCodeValue() {
return codeValue;
}
public void setCodeValue(String codeValue) {
this.codeValue = codeValue;
}
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
SecDictionaryKey other = (SecDictionaryKey) that;
return (this.getCodeType() == null ? other.getCodeType() == null : this.getCodeType().equals(other.getCodeType()))
&& (this.getCodeValue() == null ? other.getCodeValue() == null : this.getCodeValue().equals(other.getCodeValue()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getCodeType() == null) ? 0 : getCodeType().hashCode());
result = prime * result + ((getCodeValue() == null) ? 0 : getCodeValue().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", codeType=").append(codeType);
sb.append(", codeValue=").append(codeValue);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}