Hi.
I have this class:
Inside the DAO:Code:class F1 { Long id; String name; //empty const and setter and getters }
But I got this exception:Code:String sql = "select id, name from f1; return namedParameterJdbcTemplate.queryForList(sql, new HashMap(), F1.class);
org.springframework.jdbc.IncorrectResultSetColumnC ountException
I tried:
return namedParameterJdbcTemplate.queryForList(sql, new HashMap());
It works.
Why?
Thank you all.


Reply With Quote