[hibernate-issues] [Hibernate-JIRA] Created: (BVAL-191) Introduce a addEntityNode() method to the fluent node builder API
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Wed Oct 14 11:04:43 EDT 2009
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list