Change By: Hardy Ferentschik (05/Dec/12 4:38 AM)
Description: In the current, model, to represent  "persons[0]", we need to do
{code}
constraintValidatorContext 
    .buildConstraintViolationWithTemplate("constraints.CompatiblePersons.gender.message") 
        .addNode("persons") 
        .addNode(null).inIterable().atIndex(0) 
        .addConstraintViolation(); 
{code}

this could be made cleaner with
constraintValidatorContext 
    .buildConstraintViolationWithTemplate("constraints.CompatiblePersons.gender.message") 
        .addNode("persons") 
        .addEntityNode().inIterable().atIndex(0) 
        .addConstraintViolation(); 
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