db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andy Jefferson (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JDO-598) Make SingleFieldIdentity classes implement Comparable
Date Thu, 26 Jun 2008 07:18:45 GMT

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


Mime
View raw message