You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Daniel Guo <da...@gmail.com> on 2013/09/29 05:01:04 UTC
How to use toBeanList() of BasicRowProcessor?
Hi:
I encounter a problem in using dbutils:
I try to use toBeanList() to convert resultSet to bean, my code is:
*BasicRowProcessor basicRowProcessor = new BasicRowProcessor(new
PropertyColumnMapper());
*
*objectList = basicRowProcessor.toBeanList(resultSet, clazz);*
In PropertyColumnMapper(), I override the method mapColumnsToProperties(),
and the param clazz is the bean class.
I got exceptions, did I miss something? Could anybody help, thanks a lot.
--
Thanks,
Ling Guo