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