jdbccassandraapache-metamodel

Insert UUID data type values in Cassandra Database Using Apache Metamodel


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?


Solution

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