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
This commit is contained in:
chrys exaucet 2022-02-07 20:04:22 +00:00 committed by GitHub
parent 289b9c0fa8
commit 616195b6b2
2 changed files with 5 additions and 0 deletions

View File

@ -36,6 +36,8 @@
</dependency> </dependency>
</dependencies> </dependencies>
<!-- uncomment in order to enable Hibernate Validator Anotation Processor -->
<!--
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
@ -63,6 +65,8 @@
</plugins> </plugins>
</build> </build>
-->
<properties> <properties>
<hibernate-validator.version>6.0.13.Final</hibernate-validator.version> <hibernate-validator.version>6.0.13.Final</hibernate-validator.version>
<hibernate-validator.ap.version>6.2.0.Final</hibernate-validator.ap.version> <hibernate-validator.ap.version>6.2.0.Final</hibernate-validator.ap.version>

View File

@ -20,6 +20,7 @@ public class Customer {
@PositiveOrZero @PositiveOrZero
private OptionalInt numberOfOrders; private OptionalInt numberOfOrders;
@NotBlank
private Profile profile; private Profile profile;
public String getName() { public String getName() {