Quote:
public boolean isValid(String object, ConstraintValidatorContext constraintContext)
If you have
ConstraintValidator<Custom, Object> it really should be
Code:
public boolean isValid(Object object, ConstraintValidatorContext constraintContext)
Quote:
is it possible to determine the base class (i.e. MyBean) of the object "var" for use in the validation?
Do you really mean base class or the containing/owning class of the validated value. If it is the latter you are after the answer is no. If you need access to
MyBean you would need a class level validator.
--Hardy