I am new to the Spring framework. In my current project, I have a property of a class that requires the ID to have a minimum of six digits in length. All the id's must have six digits or more. I have tried to set the length of the Id to be six digits below.
@Length(min=6)
private Long Id;
However, it did not work. I got the following error
Error during managed flush [HV000030: No validator could be found for constraint 'javax.validation.constraints.Size' validating type 'java.lang.Long'. Check configuration for 'HAWB']
Any help would be appreciated