Skip to content

Commit 616195b

Browse files
authored
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
1 parent 289b9c0 commit 616195b

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

javaxval/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
</dependency>
3737
</dependencies>
3838

39+
<!-- uncomment in order to enable Hibernate Validator Anotation Processor -->
40+
<!--
3941
<build>
4042
<plugins>
4143
<plugin>
@@ -63,6 +65,8 @@
6365
</plugins>
6466
</build>
6567
68+
-->
69+
6670
<properties>
6771
<hibernate-validator.version>6.0.13.Final</hibernate-validator.version>
6872
<hibernate-validator.ap.version>6.2.0.Final</hibernate-validator.ap.version>

javaxval/src/main/java/com/baeldung/javaxval/container/validation/Customer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public class Customer {
2020
@PositiveOrZero
2121
private OptionalInt numberOfOrders;
2222

23+
@NotBlank
2324
private Profile profile;
2425

2526
public String getName() {

0 commit comments

Comments
 (0)