No validator could be found for constraint 'jakarta.validation.constraints.Pattern' validating type 'java.time.LocalDate'
We have written Liquibase changelog to generate tables and using Spring Data Hibernate support to map with entities.
But when I try to insert User with JSON payload. I am getting following exception.
jakarta.validation.UnexpectedTypeException: HV000030: No validator could be found for constraint 'jakarta.validation.constraints.Pattern' validating type 'java.time.LocalDate'. Check configuration for 'birthdate'
at org.hibernate.validator.internal.engine.constraintvalidation.ConstraintTree.getExceptionForNullValidator(ConstraintTree.java:116)
Suppressed: reactor.core.publisher.FluxOnAssembly$OnAssemblyException: *.
My changelog:
Hibernate mapping is:
@Column(name = "birthdate", nullable = false)
private LocalDate birthdate;
What is this issue and how to resolve it?
I try to do a api call to save this user. In that point I am getting above exception.