title: Getting codec registry error "Codec not found for requested operation: [map<varchar, double> <-> java.util.Map]" when not using ObjectMapper
body: <p>I am trying to get data directly from the Cassandra and store it using model class but failing to do so. I am able to do it by object mapper which I am not trying to use to keep the number of lines less as possible. I tried many stack answers but none of them worked. I am still new to Cassandra and not sure if this could be achieved. Please go easy on me, Thanks!</p>
  <p><strong>This is my model class</strong></p>
  <pre><code>@Table(&quot;ticket_data&quot;)
  public class TicketData {
  
      @PrimaryKeyColumn(name=&quot;user_id&quot;, ordinal = 0, type = PrimaryKeyType.PARTITIONED)
      private String customerId;
  
      @Column(&quot;tickets&quot;)
      private Set&lt;Map&lt;String, Double&gt;&gt; tickets;
  
  }
  </code></pre>
  <p><strong>My repositoryClass</strong></p>
  <pre><code>@Repository
  public interface TicketDataRepository extends CrudRepository&lt;TicketData, String&gt; {
  
      @Query(&quot;SELECT * FROM ticket_data WHERE customerId=?0 LIMIT 1&quot;)
      TicketData findByCustomerId(String customerId);
  }
  </code></pre>
  <p><strong>Table Schema</strong></p>
  <pre><code>create table ticket_data
  (
      customerId            text primary key,
      tickets               set&lt;frozen&lt;map&lt;text, double&gt;&gt;&gt;
  )
  </code></pre>
  <p><strong>Error that I am getting:</strong></p>
  <pre><code>Codec not found for requested operation: [map&lt;varchar, double&gt; &lt;-&gt; java.util.Map]; nested exception is com.datastax.driver.core.exceptions.CodecNotFoundException: Codec not found for requested operation: [map&lt;varchar, double&gt; &lt;-&gt; java.util.Map]
  
  </code></pre>