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

        UserRole userRole = (UserRole) o;

        return !(role != null ? !role.equals(userRole.role) : userRole.role != null) && !(user != null ? !user.equals(userRole.user) : userRole.user != null);

    }