Skip to content

Instantly share code, notes, and snippets.

@mchmielarz
Created December 17, 2018 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mchmielarz/2dc9cc28879f24f270287542e244b4ce to your computer and use it in GitHub Desktop.
Save mchmielarz/2dc9cc28879f24f270287542e244b4ce to your computer and use it in GitHub Desktop.
IBAN field annotation
@Target({ ElementType.METHOD, ElementType.FIELD })
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = IbanValidator.class)
public @interface Iban {
String message() default "{iban.constraint}";
  Class<?>[] groups() default {};
  Class<? extends Payload>[] payload() default {};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment