we used dse-driver 1.8.2 in our code, i have entity defined as:
public class HistoryByEmail implements Serializable {
...
@Column(name = ADDITIONAL_DATA)
private Map<String, String> additionalData;
}
when i tried to read the value out of that column i got this error:
com.datastax.driver.core.exceptions.CodecNotFoundException: Codec not found for requested operation: [varchar <-> java.util.Map<java.lang.String, java.lang.String>]
the I added codec at that column:
@Column(name = ADDITIONAL_DATA, codec = TypeCodec.MapCodec.class)
private Map<String, String> additionalData;
but the code won't get compiled, also tried the following approach, none of them works:
@Column(name = ADDITIONAL_DATA, codec = TypeCodec.AbstractMapCodec<String, String>.class)
private Map<String, String> additionalData;
@Column(name = ADDITIONAL_DATA, codec = TypeCodec.AbstractMapCodec<>.class)
private Map<String, String> additionalData;