public class Something{
@Constraints.Required
public Long ID;
}
and use this in controller like this:
Form<Something> vyhladavanie = formFactory.form(Something.class).bindFromRequest();
I am getting this error:
Caused by: org.springframework.beans.NotRadablePropertyException: Invalid property 'ID' of bean class [controllers.Something]: Bean property 'ID' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
When I change class to this:
public class Something{
@Constraints.Required
public Long id;
}
Then everything is working correctly..Why is this happening? I even tried on empty project with same result.