[ 
https://issues.apache.org/jira/browse/JDO-598?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andy Jefferson updated JDO-598:
-------------------------------

    Attachment: SingleFieldIdentity_Comparable.patch

Patch providing Comparable for "api2" project. Want this on "api2-legacy" too ?
Patch does the following
1. IntIdentity, ShortIdentity, LongIdentity, CharIdentity, ByteIdentity, 
StringIdentity provide implementation of compareTo() allowing comparison with 
other identity *of the same type*.
2. ObjectIdentity disallows comparison


> Make SingleFieldIdentity classes implement Comparable
> -----------------------------------------------------
>
>                 Key: JDO-598
>                 URL: https://issues.apache.org/jira/browse/JDO-598
>             Project: JDO
>          Issue Type: Improvement
>          Components: api2
>            Reporter: Andy Jefferson
>             Fix For: JDO 2 maintenance release 2
>
>         Attachments: SingleFieldIdentity_Comparable.patch
>
>
> Would be preferable for javax.jdo.identity classes to implement Comparable so 
> that we can store them in a TreeSet etc

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to