It seems they forgot to add this annotation to the core package. Just a mistake may be or so, but there is the workaround. Use a custom validator annotation
@CustomValidator(type ="long", fieldName = "myField")
under registered validators you can find the name of the validator long
.