[hibernate-issues] [Hibernate-JIRA] Created: (HV-303) in propertyPath don't get index for Sets and SortedSets

wof (JIRA) noreply at atlassian.com
Tue Apr 6 10:51:02 EDT 2010


in propertyPath don't get index for Sets and SortedSets
-------------------------------------------------------

                 Key: HV-303
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-303
             Project: Hibernate Validator
          Issue Type: Bug
          Components: engine
    Affects Versions: 4.0.2.GA
            Reporter: wof
            Assignee: Hardy Ferentschik


The method isIndexable in ValidatorImpl don't support SortedSets or Sets. While there is no no particular order for an Iterater of a Set, most common implementations iterate at least for two calls in the same way. So it is arguable if Sets should be supported. SortedSets on the other hand guarantee always a particular order and have to be supported.

So there are possible solutions:
- check for SortedSets and allow them
- check for Set and hope that without change in this Set, the order will be the same as the last time (at least I know no other implementation)
- check for Iterable and hope the same. ;-)

cheers

wof

-- 
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