@Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Student other = (Student) obj;
        if ((this.studentName == null) ? (other.studentName != null) : !this.studentName.equals(other.studentName)) {
            return false;
        }
        if (this.studentYear != other.studentYear && (this.studentYear == null || !this.studentYear.equals(other.studentYear))) {
            return false;
        }
        return true;
    }