2
我試圖從ID搜索的數據庫獲取產品表中的項目列表。我在產品表中添加了UDT列。UDT錯誤 - pageCount不是在此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的? mapper是怎樣的? –