@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 ComercioPK)) {
            return false;
        }
        ComercioPK other = (ComercioPK) object;
        if ((this.comCodsec == null && other.comCodsec != null) || (this.comCodsec != null && !this.comCodsec.equals(other.comCodsec))) {
            return false;
        }
        if ((this.comCodpsf == null && other.comCodpsf != null) || (this.comCodpsf != null && !this.comCodpsf.equals(other.comCodpsf))) {
            return false;
        }
        return true;
    }