package ch.wisv.dienst2.apiclient.model;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Objects;

/**
 * Member model
 */
@SuppressWarnings("unused")
public class Student implements Serializable {
    private int person;

    private String study;
    private int firstYear;
    private String studentNumber;
    private boolean graduated;

    private String phoneParents;

    private boolean yearbookPermission;

    private LocalDate dateVerified;

    public int getPerson() {
        return person;
    }

    public String getStudy() {
        return study;
    }

    public int getFirstYear() {
        return firstYear;
    }

    public String getStudentNumber() {
        return studentNumber;
    }

    public boolean isGraduated() {
        return graduated;
    }

    public String getPhoneParents() {
        return phoneParents;
    }

    public boolean isYearbookPermission() {
        return yearbookPermission;
    }

    public LocalDate getDateVerified() {
        return dateVerified;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Student student = (Student) o;
        return Objects.equals(person, student.person) &&
                Objects.equals(firstYear, student.firstYear) &&
                Objects.equals(graduated, student.graduated) &&
                Objects.equals(yearbookPermission, student.yearbookPermission) &&
                Objects.equals(study, student.study) &&
                Objects.equals(studentNumber, student.studentNumber) &&
                Objects.equals(phoneParents, student.phoneParents) &&
                Objects.equals(dateVerified, student.dateVerified);
    }

    @Override
    public int hashCode() {
        return Objects.hash(person, study, firstYear, studentNumber, graduated, phoneParents, yearbookPermission,
                dateVerified);
    }
}

@@ -350,23 +350,22 @@
 boolean 
-graduat
+enroll
 ed;%0A%0A   
@@ -758,15 +758,14 @@
 n is
-Graduat
+Enroll
 ed()
@@ -782,23 +782,22 @@
  return 
-graduat
+enroll
 ed;%0A    
@@ -1382,23 +1382,22 @@
 .equals(
-graduat
+enroll
 ed, stud
@@ -1400,23 +1400,22 @@
 student.
-graduat
+enroll
 ed) &&%0A 
@@ -1883,15 +1883,14 @@
 er, 
-graduat
+enroll
 ed, 

Rename `graduated` to `enrolled`