package com.rzyc.model; import java.io.Serializable; /** * @author */ public class SysLogOptWithBLOBs extends SysLogOpt implements Serializable { private String objcnt1; private String objcnt2; private static final long serialVersionUID = 1L; public String getObjcnt1() { return objcnt1; } public void setObjcnt1(String objcnt1) { this.objcnt1 = objcnt1; } public String getObjcnt2() { return objcnt2; } public void setObjcnt2(String objcnt2) { this.objcnt2 = objcnt2; } @Override public boolean equals(Object that) { if (this == that) { return true; } if (that == null) { return false; } if (getClass() != that.getClass()) { return false; } SysLogOptWithBLOBs other = (SysLogOptWithBLOBs) that; return (this.getSyslogoptid() == null ? other.getSyslogoptid() == null : this.getSyslogoptid().equals(other.getSyslogoptid())) && (this.getObjname() == null ? other.getObjname() == null : this.getObjname().equals(other.getObjname())) && (this.getObjchinaname() == null ? other.getObjchinaname() == null : this.getObjchinaname().equals(other.getObjchinaname())) && (this.getObjectid() == null ? other.getObjectid() == null : this.getObjectid().equals(other.getObjectid())) && (this.getObjecttext() == null ? other.getObjecttext() == null : this.getObjecttext().equals(other.getObjecttext())) && (this.getOptid() == null ? other.getOptid() == null : this.getOptid().equals(other.getOptid())) && (this.getOptusername() == null ? other.getOptusername() == null : this.getOptusername().equals(other.getOptusername())) && (this.getOptchinaname() == null ? other.getOptchinaname() == null : this.getOptchinaname().equals(other.getOptchinaname())) && (this.getOpttype() == null ? other.getOpttype() == null : this.getOpttype().equals(other.getOpttype())) && (this.getOpttime() == null ? other.getOpttime() == null : this.getOpttime().equals(other.getOpttime())) && (this.getCreatedby() == null ? other.getCreatedby() == null : this.getCreatedby().equals(other.getCreatedby())) && (this.getCreatedon() == null ? other.getCreatedon() == null : this.getCreatedon().equals(other.getCreatedon())) && (this.getModifiedby() == null ? other.getModifiedby() == null : this.getModifiedby().equals(other.getModifiedby())) && (this.getModifiedon() == null ? other.getModifiedon() == null : this.getModifiedon().equals(other.getModifiedon())) && (this.getSysenterpriseid() == null ? other.getSysenterpriseid() == null : this.getSysenterpriseid().equals(other.getSysenterpriseid())) && (this.getObjcnt1() == null ? other.getObjcnt1() == null : this.getObjcnt1().equals(other.getObjcnt1())) && (this.getObjcnt2() == null ? other.getObjcnt2() == null : this.getObjcnt2().equals(other.getObjcnt2())); } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getSyslogoptid() == null) ? 0 : getSyslogoptid().hashCode()); result = prime * result + ((getObjname() == null) ? 0 : getObjname().hashCode()); result = prime * result + ((getObjchinaname() == null) ? 0 : getObjchinaname().hashCode()); result = prime * result + ((getObjectid() == null) ? 0 : getObjectid().hashCode()); result = prime * result + ((getObjecttext() == null) ? 0 : getObjecttext().hashCode()); result = prime * result + ((getOptid() == null) ? 0 : getOptid().hashCode()); result = prime * result + ((getOptusername() == null) ? 0 : getOptusername().hashCode()); result = prime * result + ((getOptchinaname() == null) ? 0 : getOptchinaname().hashCode()); result = prime * result + ((getOpttype() == null) ? 0 : getOpttype().hashCode()); result = prime * result + ((getOpttime() == null) ? 0 : getOpttime().hashCode()); result = prime * result + ((getCreatedby() == null) ? 0 : getCreatedby().hashCode()); result = prime * result + ((getCreatedon() == null) ? 0 : getCreatedon().hashCode()); result = prime * result + ((getModifiedby() == null) ? 0 : getModifiedby().hashCode()); result = prime * result + ((getModifiedon() == null) ? 0 : getModifiedon().hashCode()); result = prime * result + ((getSysenterpriseid() == null) ? 0 : getSysenterpriseid().hashCode()); result = prime * result + ((getObjcnt1() == null) ? 0 : getObjcnt1().hashCode()); result = prime * result + ((getObjcnt2() == null) ? 0 : getObjcnt2().hashCode()); return result; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", objcnt1=").append(objcnt1); sb.append(", objcnt2=").append(objcnt2); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); } }