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