[xwiki-devs] idea: use the JDK 1.5 UUID implementation when we need unique id
Sergiu Dumitriu
sergiu at xwiki.com
Mon Jan 14 11:57:21 CET 2008
Vincent Massol wrote:
> Hi,
>
> I've heard that there are some places in xwiki where we need unique
> ids (anyone remembers where?).
>
> In any case I've found this JDK 1.5 class which can help us with the
> implementation:
> http://java.sun.com/j2se/1.5.0/docs/api/java/util/UUID.html
>
> I'm posting it here for the record.
>
> Thanks
> -Vincent
Against it, as it:
- adds another dependency on Java 1.5
- only provides Random and Name UUID, no time-based UUIDs
A better option would be Jug (http://jug.safehaus.org/), which provides
more types of UUIDs.
Sergiu
More information about the devs
mailing list