title: Cassandra - User defined data type
body: <p>I have tried Cassandra user defined data type <a href="http://www.datastax.com/documentation/developer/java-driver/2.1/java-driver/reference/crudOperations.html" rel="nofollow">example given by DataStax</a> and I'm getting the below exception.<br>
  They did not specify how <code>Address</code> object should look like for this case. I have defined UDT type but it doesn't help.<br>
  Can any one help me how the Address class should look like?</p>
  
  <pre><code>java.lang.IllegalArgumentException: Cannot map unknown class com.att.opus.mytest.Address for field private com.att.opus.mytest.Address com.att.opus.mytest.Account.address
      at com.datastax.driver.mapping.ReflectionMapper.getSimpleType(ReflectionMapper.java:321)
      at com.datastax.driver.mapping.ReflectionMapper.extractType(ReflectionMapper.java:286)
      at com.datastax.driver.mapping.ReflectionMapper$LiteralMapper.&lt;init&gt;(ReflectionMapper.java:65)
      at com.datastax.driver.mapping.ReflectionMapper$LiteralMapper.&lt;init&gt;(ReflectionMapper.java:59)
      at com.datastax.driver.mapping.ReflectionMapper$ReflectionFactory.createColumnMapper(ReflectionMapper.java:372)
      at com.datastax.driver.mapping.AnnotationParser.convert(AnnotationParser.java:154)
      at com.datastax.driver.mapping.AnnotationParser.parseEntity(AnnotationParser.java:103)
      at com.datastax.driver.mapping.MappingManager.getMapper(MappingManager.java:119)
      at com.datastax.driver.mapping.MappingManager.mapper(MappingManager.java:76)
      at com.att.opus.mytest.AccountMapper.test(AccountMapper.java:12)
      at com.att.poc.Main.accountTest(Main.java:53)
      at com.att.poc.Main.main(Main.java:40)
  </code></pre>