1

I want to insert UUID type values in Cassandra database using Apache Metamodel. For text data type I am using like

.values("ColName", value)

How can I insert UUID type values?

Cœur
  • 37,241
  • 25
  • 195
  • 267
deen
  • 2,185
  • 7
  • 29
  • 53

1 Answers1

2

This SO question says it should look something like

.values(colName, 77820258-ef49-4e61-8a74-debbdd5993ea)

if you have a hardcoded UUID. This gives various ways you can auto-generate a UUID.

Community
  • 1
  • 1
jackiezhu
  • 422
  • 3
  • 8
  • thank you for reply, I got my point. Instead of value we can also use UUIDs.random(), It'll generate uuid randomly. – deen Jul 06 '16 at 07:07