Skip to content
Snippets Groups Projects
Commit 5570366c authored by Antoine Rey's avatar Antoine Rey
Browse files

Use a simple RowMapper instead of a BeanPropertyRowMapper

parent 8d203405
No related branches found
No related tags found
No related merge requests found
...@@ -20,13 +20,13 @@ import java.sql.SQLException; ...@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment