@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof User)) return false;

        User user = (User) o;

        if (!creationdate.equals(user.creationdate)) return false;
        if (!email.equals(user.email)) return false;
        if (!id.equals(user.id)) return false;
        if (!lastupdate.equals(user.lastupdate)) return false;
        if (!password.equals(user.password)) return false;
        if (!username.equals(user.username)) return false;

        return true;
    }