Hardy Ferentschik edited a comment on Improvement BVAL-191

but is addBeanNode (or addEntityNode) not misleading since we not really add a node?

Wouldn't something like this even better:

constraintValidatorContext 
    .buildConstraintViolationWithTemplate("constraints.CompatiblePersons.gender.message") 
        .addNode("persons") 
        .inIterable().atIndex(0) 
        .addConstraintViolation()

This also ties into the first option of http://beanvalidation.org/proposals/BVAL-221/. If ConstraintViolationBuilder#addNode were to return NodeBuilderCustomizableContext instead of NodeBuilderDefinedContext the problem would go away, right?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira