Hello,
the result of ConstraintViolation.getPropertyPath() method is quite useful to identify where the violation occurs. It could be improved in case of collections in a hierarchy. In this case the path contains the numeric index of the element of the collection.
Is there a way to obtain instead the value of a field (that has a unique value for the bean) or method? How can achieve this?
For example:
bean1[field1Value].bean2[field2Value].property
instead of
bean1[2].bean2[3].property