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