title: Cassandra store list of objects
body: <p>I need to store a list of map in cassandra. Is that possible?
  This is a json representation of my data:</p>
  
  <pre><code>{
     "deviceId" : "261e92b8-91af-40da-8ba4-c39d821472ec",
     "sensors": [
     {
         "fieldSensorId": "sensorID",
         "name": "sensorName",
         "location": "sensor location",
         "unit": "value units",
         "notes": "notes"
     },
     {
        "fieldSensorId": "sensorID 2",
        "name": "sensorName 2",
        "location": "sensor location 2",
        "unit": "value units",
        "notes": "notes"
      }
    ]
  }
  </code></pre>
  
  <p>CQL:</p>
  
  <pre><code>CREATE TABLE device_sensors (
      device_id text,
      sensors list&lt;frozen &lt;map&lt;text,text&gt;&gt;&gt;,
      time timeuuid,
      PRIMARY KEY (device_id)
  )
  </code></pre>
  
  <p>Still im not able to insert any data. What is the right way of storing such data in cassandra? Later i will need to query the sensors list
  Is it maybe wiser to create a sensors table and use sensor > to reference the sensors?</p>