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