Skip to content

Instantly share code, notes, and snippets.

@tkstone
Created April 23, 2019 02:04
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;
import test.vo.SourceVO;
public class TbSourceMapper implements RowMapper<SourceVO> {
@Override
public SourceVO mapRow(ResultSet rs, int rowNum) throws SQLException {
SourceVO vo = new SourceVO();
vo.col1 = rs.getString(1);
vo.col2 = rs.getString(2);
vo.col3 = rs.getString(3);
return vo;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment