title: UnresolvedUserTypeException: cannot resolve user type
body: <p>I have a case class like this:</p>
  
  <pre><code>case class Address(id String, location String)
  case class Person(id String, name String, address Option[Address])
  </code></pre>
  
  <p>Now I want to store these case class in cassandra table. I am working with Lagom Persistence. So I created Read side Processor to do that task. I wrote the following under setGlobalPrepare method:</p>
  
  <pre><code>session.executeWrite("""
  | CREATE TYPE Address(
  | id text, 
  | location text)""".stripMargin)
  
  session.executeCreateTable("""
  | CREATE TABLE Person(
  | id text,
  | name text,
  | address frozen&lt;Address&gt;,
  | PRIMARY KEY((id),name)
  | )""".stripMargin)
  </code></pre>
  
  <p>But this showing an error that <strong>"UnresolvedUserTypeException: cannot resolve user type testdatabase.id"</strong> (testdatabase is the keyspace)and same for name of Address UDT. </p>
  
  <p>First i Thought it was because of all the execution of the command are running in future so I tried using map to wait for the main table to be created before the UDT but didnt work. All tables are showing in cassandra but i am getting this error and i am not able to insert anything to it.</p>
  
  <p>Need Help....</p>