79659274

Date: 2025-06-09 17:26:02
Score: 1
Natty:
Report link

You discovered the root cause: your old Hibernate Validator version supports org.hibernate.validator.constraints.NotBlank but not the javax.validation.constraints.NotBlank properly.

Upgrading Hibernate Validator to 6.x fixes the problem, but you're stuck with 5.1.0 due to project constraints.

So your version of Hibernate Validator simply does not recognize or enforce the newer javax.validation.constraints.NotBlank annotation.

suggested solutions:

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @NotNull
  • Low reputation (1):
Posted by: sadkeyvanfar