From 616195b6b2a3f7f787884582d2ee3f31d5f70806 Mon Sep 17 00:00:00 2001 From: chrys exaucet Date: Mon, 7 Feb 2022 20:04:22 +0000 Subject: [PATCH] Bael 5123: uncomment @NotBlank annotation (#11788) * revert: comment Hibernate Validator AP dependency See http://jira.baeldung.com/browse/BAEL-5123 * revert: restore @NotBlank annotation See http://jira.baeldung.com/browse/BAEL-5123 --- javaxval/pom.xml | 4 ++++ .../com/baeldung/javaxval/container/validation/Customer.java | 1 + 2 files changed, 5 insertions(+) diff --git a/javaxval/pom.xml b/javaxval/pom.xml index 7d009f3280..4131ddeb97 100644 --- a/javaxval/pom.xml +++ b/javaxval/pom.xml @@ -36,6 +36,8 @@ + + + 6.0.13.Final 6.2.0.Final diff --git a/javaxval/src/main/java/com/baeldung/javaxval/container/validation/Customer.java b/javaxval/src/main/java/com/baeldung/javaxval/container/validation/Customer.java index d990647721..03811635ee 100644 --- a/javaxval/src/main/java/com/baeldung/javaxval/container/validation/Customer.java +++ b/javaxval/src/main/java/com/baeldung/javaxval/container/validation/Customer.java @@ -20,6 +20,7 @@ public class Customer { @PositiveOrZero private OptionalInt numberOfOrders; + @NotBlank private Profile profile; public String getName() {