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>
|
</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>
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue