BeanPropertyRowMapper


Spring 2.5+はBeanPropertyRowMapper/P a r a m e r i zedBeanPropertyRowMaperを提供し、POとデータベースモデルのフィールドが完全に対応している場合(フィールド名が同じかアルパカ式が下線式に対応している場合)、JdbcTemplateを使用する場合、このRowMapperをPOとデータベースのマッピングとして使用できます.

jdbcTemplate.query("select * from list_pages",new BeanPropertyRowMapper(ListPage.class));