deepLinkingUrl sample erroring

I’m trying to use this https://vaadin.com/docs/latest/flow/routing/updating-url-parameters but This one is erroring

image

Most likely, the type of User.getId() does not match the generic type defined for HasUrlParameter.
For example, the view class is implementing HasUrlParameter<Integer> and User.getId() return type is Long.

2 Likes