@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        SchoolStudent that = (SchoolStudent) o;

        if (getType() != null ? !getType().equals(that.getType()) : that.getType() != null) return false;
        if (id != null ? !id.equals(that.id) : that.id != null) return false;

        return true;
    }