public List<TestBean> findAll() {

		return jdbcTemplate.query("select * from test",
				new ParameterizedRowMapper<TestBean>() {

					@Override
					public TestBean mapRow(ResultSet rs, int rownum)
							throws SQLException {
						TestBean result = new TestBean();
						result.setId(rs.getInt(1));
						result.setName(rs.getString(2));
						return result;
					}
				});
	}