我正在尝试让 spring-data 将我的枚举类型转换为 cassandra 中的 int 字段,但出现以下异常:
Unexpected runtime exception java.lang.IllegalArgumentException:
Value 2 of type class com.twc.atg.td.dbo.client.ClassCode does not correspond to any CQL3 type
这是我正在使用的一段代码:
@Enumerated(EnumType.ORDINAL)
@Column("class_code")
public ClassCode classCode;