Я создал таблицу в пространстве ключей, как
CREATE TABLE IF NOT EXISTS myks.users (user_id text, device_ids map<text,text>);
I'm trying to insert the below data using `spring-boot-starter-data-cassandra` library in Spring boot
{
"userId" : "krishna",
"deviceIds": {
"DeviceId_0": "TYNLSANID7",
"DeviceId_1": "julasjasd8",
"DeviceId_2": "iu89074hasd",
"DeviceId_3": "Lenovo hjyas|asdqnkasd"
}
}
, и ниже находится класс сущности
@Column("user_id")
@CassandraType(type = DataType.Name.TEXT)
private String userId;
@Column("device_ids")
@CassandraType(type = DataType.Name.MAP)
private Map<String, String> deviceIds= new HashMap<>();
При вставке данных в таблицу я получаю следующее исключение1007 *
org.springframework.dao.InvalidDataAccessApiUsageException: Expected [2] type arguments for property ['deviceIds'] of type ['interface java.util.Map'] in entity [com.kri.entity.Users]; actual was [0]