I am trying to insert some values in Cassandra using Datastax Java driver.
I have a case class representing the values I want to insert.
case class User(firstname:String, lastname:String) The insert method of Cassandra's driver looks like
values(List<String> names, List<Object> values) The table schema is
CREATE TABLE users ( firstname text, lastname text, PRIMARY KEY ((firstname, lastname)) What is the way to convert User into List<Object>