I have mandatory field in object which I want to validate:
But when I'm trying to validate it using the Hibernate Validator I receive an exception:
Problem is that Validator invokes hashCode() with null mandatory field. But purpose of validation is to check nullability of this field and produce a validation error. Current behavior is conceptually wrong from my point of view.
Thanks in advance!