Introduce a addEntityNode() method to the fluent node builder API
-----------------------------------------------------------------
Key: BVAL-191
URL:
http://opensource.atlassian.com/projects/hibernate/browse/BVAL-191
Project: Bean Validation
Issue Type: Improvement
Components: spec-general
Affects Versions: 1.0 final
Reporter: Emmanuel Bernard
In the current, model, to represent "persons[0]", we need to do
constraintValidatorContext
.buildConstraintViolationWithTemplate("constraints.CompatiblePersons.gender.message")
.addNode("persons")
.addNode(null).inIterable().atIndex(0)
.addConstraintViolation();
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 contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira