aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/src/main/java/com/vaadin/data/RequiredFieldConfigurator.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/main/java/com/vaadin/data/RequiredFieldConfigurator.java b/server/src/main/java/com/vaadin/data/RequiredFieldConfigurator.java
index c4071e9d98..8636c68012 100644
--- a/server/src/main/java/com/vaadin/data/RequiredFieldConfigurator.java
+++ b/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