I\'m working on a project that uses bean validation (Hibernate Validator 5.1.3.Final). My bean has a attribute with the @Past
annotation.
@Past(
Since LocalDate is still pretty new a lot of libraries don't handle it yet. In the project I am working on I had to write custom user type for LocalDate.
Take a look at this hibernate issue HHH-8844
It seems like they have added a new module hibernate-java8 to support java 8's new Date API.
I know the above information is talking about type mapping but the same might hold true to validation.
If there is no out of the box solution you might just have to write your own. See the following page for an example of adding joda time validators, java 8 dates should be similar link