Hi All,
Is there something in Spring which can map a ResultSet to a JavaBean directly?
What I'm looking for is somethis similar to the BeanHandler present in Apache Commons DBUtils.
Thanks,
Daniel
Hi All,
Is there something in Spring which can map a ResultSet to a JavaBean directly?
What I'm looking for is somethis similar to the BeanHandler present in Apache Commons DBUtils.
Thanks,
Daniel
Hello,
not sure what you need exactly.
But if you want to map the rows yourself in one place, have a look here
Hope this helps
regards
agim
Hi!
I wanna cols to be automatically mapped to bean properties. I'm achieving this using apache commons dbutils inside spring rowmapper, like this:
return getJdbcTemplate().query(getQuery(),
new Object[] { nmLogin, nmLogin }, new RowMapper() {
public Object mapRow(ResultSet rs, int i)
throws SQLException {
return beanHandler.handle(rs);
}
});
Thanks,
Daniel
Does this help?
http://forum.springframework.org/showthread.php?t=32160
Last edited by karldmoore; Aug 29th, 2007 at 11:54 AM.
Barracuda Networks SSL VPN Lead Developer
http://pramatr.wordpress.com
http://twitter.com/karldmoore
http://www.linkedin.com/in/karldmoore
Any postings are my own opinion, and should not be attributed to my employer or clients.