Re: UUID - Java

2013-01-03 Thread aaron morton
> To: "user@cassandra.apache.org<mailto:user@cassandra.apache.org>" > mailto:user@cassandra.apache.org>> > Subject: UUID - Java > > Hi, > I use the following code to generate the primary key. > > public static java.util.UUID getTimeUUID() { >

Re: UUID - Java

2013-01-03 Thread Hiller, Dean
lt;mailto:user@cassandra.apache.org>" mailto:user@cassandra.apache.org>> Date: Thursday, January 3, 2013 3:00 AM To: "user@cassandra.apache.org<mailto:user@cassandra.apache.org>" mailto:user@cassandra.apache.org>> Subject: UUID - Java Hi, I use the following code to gener

UUID - Java

2013-01-03 Thread Baskar Sikkayan
Hi, I use the following code to generate the primary key. public static java.util.UUID getTimeUUID() { return java.util.UUID.fromString(new com.eaio.uuid.UUID().toString()); } Is this the correct approach? Do let me know if there i any better approach which guarantees no conflict