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