I'm trying to apply formatter-annotation to the field "phone" in next model-class:
Interface for annotation:
And it does not work: phone-values saved in database, but in non-formatted form.
Note: when I run test in debug with breakpoint on PhoneFormatter, test passes susseccfully. That means, that my Formatter is out of process. But when I set breakpoint on PhoneFormatAnnotationFormatterFactory.getFieldTypes, test interrupted.
In particular, debug with breakpoint on return Collections.singleton(String.class); in
shows that the class PhoneFormatAnnotationFormatterFactory has no fields...