Is there a way to implement @NotEmpty
hibernate validation without writing custom validation?
javax.validation package does not contain this annotation. Only @NotNull
. But it does not validate for Non-null but empty values. So I would like to see an alternative for @NotEmpty
.
Using @Pattern
? How?
@Size(min=1)
subsume@NotNull
? e.g. grepcode.com/file/repo1.maven.org/maven2/javax.validation/… – Finesse