Преглед изворни кода

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

Fixes #10914
tags/8.12.0.alpha1
Martín López пре 4 година
родитељ
комит
786ca64838
No account linked to committer's email address
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2
    1
      server/src/main/java/com/vaadin/data/RequiredFieldConfigurator.java

+ 2
- 1
server/src/main/java/com/vaadin/data/RequiredFieldConfigurator.java Прегледај датотеку

@@ -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…
Откажи
Сачувај