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