InvalidValue does not give me access to the original constraint and its parameters like min, max, value etc. that's part of a constraint...
InvalidValue[] hibernateValidationMessages = myBeanValidator.getInvalidValues(myBean);
If InvalidValue could provide access to the offending constraint, then I could use my own localization and not to have to rely on Hibernate. Reason for not using Hibernate messages is because we need custom error messages for various situations.
ie...error message for notNull cannot always be "cannot be null".
Is it possible to somehow retrieve the offending constraint given an InvalidValue?
Thanks...
|