package com.zheng.pay.dao.model; import java.io.Serializable; public class PayVendor implements Serializable { private Integer payVendorId; private String name; private String appid; private String appsecret; private String config; private static final long serialVersionUID = 1L; public Integer getPayVendorId() { return payVendorId; } public void setPayVendorId(Integer payVendorId) { this.payVendorId = payVendorId; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getAppid() { return appid; } public void setAppid(String appid) { this.appid = appid; } public String getAppsecret() { return appsecret; } public void setAppsecret(String appsecret) { this.appsecret = appsecret; } public String getConfig() { return config; } public void setConfig(String config) { this.config = config; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", payVendorId=").append(payVendorId); sb.append(", name=").append(name); sb.append(", appid=").append(appid); sb.append(", appsecret=").append(appsecret); sb.append(", config=").append(config); 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; } PayVendor other = (PayVendor) that; return (this.getPayVendorId() == null ? other.getPayVendorId() == null : this.getPayVendorId().equals(other.getPayVendorId())) && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName())) && (this.getAppid() == null ? other.getAppid() == null : this.getAppid().equals(other.getAppid())) && (this.getAppsecret() == null ? other.getAppsecret() == null : this.getAppsecret().equals(other.getAppsecret())) && (this.getConfig() == null ? other.getConfig() == null : this.getConfig().equals(other.getConfig())); } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((getPayVendorId() == null) ? 0 : getPayVendorId().hashCode()); result = prime * result + ((getName() == null) ? 0 : getName().hashCode()); result = prime * result + ((getAppid() == null) ? 0 : getAppid().hashCode()); result = prime * result + ((getAppsecret() == null) ? 0 : getAppsecret().hashCode()); result = prime * result + ((getConfig() == null) ? 0 : getConfig().hashCode()); return result; } }