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

*/ */
public RequiredFieldConfigurator NOT_EMPTY = annotation -> annotation public RequiredFieldConfigurator NOT_EMPTY = annotation -> annotation
.annotationType().getName() .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 * Configurator which is aware of {@literal Size} annotation with

Loading…
Cancel
Save