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