[hibernate-issues] [Hibernate-JIRA] Created: (BVAL-143) desribe path with an object model
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Thu Mar 19 11:55:41 EDT 2009
desribe path with an object model
---------------------------------
Key: BVAL-143
URL: http://opensource.atlassian.com/projects/hibernate/browse/BVAL-143
Project: Bean Validation
Issue Type: Improvement
Components: spec-general
Affects Versions: 1.0 proposed final draft
Reporter: Emmanuel Bernard
Priority: Minor
path are today strings with dot separating properties. But it break when Set or Iterable are used.
We could replace that with
--- First strawman, must evolve --
class PathElement {
String getName();
PathElement getParentPath();
boolean isIterable();
boolean isIndexed();
Object getIndex();
//TODO int getIndex()?
// not happy about that as it is only useful for Constraintciolation
PathElement getChild();
}
PathElement would be used for Constraintvuilation, maybe CVContext etc
can this be refactored using inheritance + generics to have an IndexedPathElement only when it matters (probably no unfortunately)
--
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