Use @org.hibernate.validator.constraints.NotBlank Explicitly in your class. This annotation is fully supported in 5.1.0, and will behave correctly.
@org.hibernate.validator.constraints.NotBlank