[xwiki-devs] idea: use the JDK 1.5 UUID implementation when we need unique id
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
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
On Jan 14, 2008, at 11:57 AM, Sergiu Dumitriu wrote:
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
I believe 1.5 is a fact of life now...
- 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.
Fine with that. I'm not an expert in that domain so I'll trust you on this. I just noticed that this framework hasn't been touched for a while. Thanks -Vincent
participants (2)
-
Sergiu Dumitriu -
Vincent Massol