我有上面的结果列表。我需要从该列表中获取一个元素或值。如何实现这一点。
public List<OriginTransactionsVM> findTransactionsOfOrigin(String origin_id) {
List result=null;
try {
Query query = getSession().createSQLQuery("CALL getOriginTransactions(:string_acc_no)")
.setParameter("string_acc_no", origin_id);
result= query.list();
// String rep = (String) result.get(0); need to achieve this result.get(0)[0] something like this
} catch (Exception ex) {
throw ex;
}
return result;
}
不负相思意
慕的地8271018
相关分类