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:
parent
289b9c0fa8
commit
616195b6b2
|
@ -36,6 +36,8 @@
|
|||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<!-- uncomment in order to enable Hibernate Validator Anotation Processor -->
|
||||
<!--
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
|
@ -63,6 +65,8 @@
|
|||
</plugins>
|
||||
</build>
|
||||
|
||||
-->
|
||||
|
||||
<properties>
|
||||
<hibernate-validator.version>6.0.13.Final</hibernate-validator.version>
|
||||
<hibernate-validator.ap.version>6.2.0.Final</hibernate-validator.ap.version>
|
||||
|
|
|
@ -20,6 +20,7 @@ public class Customer {
|
|||
@PositiveOrZero
|
||||
private OptionalInt numberOfOrders;
|
||||
|
||||
@NotBlank
|
||||
private Profile profile;
|
||||
|
||||
public String getName() {
|
||||
|
|
Loading…
Reference in New Issue