【发布时间】:2016-09-19 14:20:29
【问题描述】:
我试图从 db 的 id 搜索中的产品表中获取项目列表。我在产品表中添加了一个 UDT 列。
try
{
final List<Row> rows = session.execute(boundStatement.bind(pId, pmyTime)).all();
if (!rows.isEmpty())
{
productDataList = ProductMapper.extractResult(rows, myBomObjMapper);
}
}
在初始化方法中-
public void init(){
session = cassandraSessionFactory.getSession();
myObjMapper = new MappingManager(session).udtMapper(BomObject.class);
}
我遇到了异常
java.lang.IllegalArgumentException: pageCount is not a field defined in this UDT
我做错了什么?
【问题讨论】:
-
我们需要更多信息才能为您提供帮助。你的架构是什么?您是如何定义该 UDT 的?映射器的外观如何?
标签: spring datastax cassandra-2.0 datastax-java-driver spring-data-cassandra