Browse Source

Support for javax.validation @NotEmpty annotation. (#11985)

Fixes #10914
tags/8.12.0.alpha1
Martín López 4 years ago
parent
commit
786ca64838
No account linked to committer's email address

+ 2
- 1
server/src/main/java/com/vaadin/data/RequiredFieldConfigurator.java View File

@@ -50,7 +50,8 @@ public interface RequiredFieldConfigurator
*/
public RequiredFieldConfigurator NOT_EMPTY = annotation -> annotation
.annotationType().getName()
.equals("org.hibernate.validator.constraints.NotEmpty");
.equals("org.hibernate.validator.constraints.NotEmpty") || annotation
.annotationType().getName().equals("javax.validation.constraints.NotEmpty");

/**
* Configurator which is aware of {@literal Size} annotation with

Loading…
Cancel
Save