@Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Cours other = (Cours) obj;
        if (this.getId() != other.getId()) {
            return false;
        }
        if (this.getIdUE() != other.getIdUE()) {
            return false;
        }
        if (this.getIdSalle() != other.getIdSalle()) {
            return false;
        }
        if (this.getIdIntervenant() != other.getIdIntervenant()) {
            return false;
        }
        if (this.getIdTypeCours() != other.getIdTypeCours()) {
            return false;
        }
        return true;
    }