[hibernate-issues] [Hibernate-JIRA] Resolved: (BVAL-143) Describe path with an object model
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Mon Jun 22 12:51:35 EDT 2009
[ http://opensource.atlassian.com/projects/hibernate/browse/BVAL-143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Bernard resolved BVAL-143.
-----------------------------------
Resolution: Fixed
> Describe 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