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