@Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Townshipbusiness)) {
            return false;
        }
        Townshipbusiness other = (Townshipbusiness) object;
        if ((this.townshipBusinessID == null && other.townshipBusinessID != null) || (this.townshipBusinessID != null && !this.townshipBusinessID.equals(other.townshipBusinessID))) {
            return false;
        }
        return true;
    }