mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 20:25:50 +00:00
Use a simple RowMapper instead of a BeanPropertyRowMapper
This commit is contained in:
parent
8d20340518
commit
5570366cfd
1 changed files with 3 additions and 3 deletions
|
@ -20,13 +20,13 @@ import java.sql.SQLException;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import org.joda.time.DateTime;
|
import org.joda.time.DateTime;
|
||||||
import org.springframework.jdbc.core.BeanPropertyRowMapper;
|
import org.springframework.jdbc.core.RowMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@link BeanPropertyRowMapper} implementation mapping data from a {@link ResultSet} to the corresponding properties
|
* {@link RowMapper} implementation mapping data from a {@link ResultSet} to the corresponding properties
|
||||||
* of the {@link JdbcPet} class.
|
* of the {@link JdbcPet} class.
|
||||||
*/
|
*/
|
||||||
class JdbcPetRowMapper extends BeanPropertyRowMapper<JdbcPet> {
|
class JdbcPetRowMapper implements RowMapper<JdbcPet> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public JdbcPet mapRow(ResultSet rs, int rownum) throws SQLException {
|
public JdbcPet mapRow(ResultSet rs, int rownum) throws SQLException {
|
||||||
|
|
Loading…
Reference in a new issue