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