How to use bean-validation @Pattern in the field below to check if the first digit is '1'?
private Long registration;
How to use bean-validation @Pattern in the field below to check if the first digit is '1'?
private Long registration;
Regex bellow says it must start with 1 and have anything after that
@Pattern (regexp = "^1.*$")
private Long registration;