Skip to content

Instantly share code, notes, and snippets.

@tkstone
Created April 23, 2019 02:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkstone/e26314cb7d12fd33d7211afb5305c5dd to your computer and use it in GitHub Desktop.
Save tkstone/e26314cb7d12fd33d7211afb5305c5dd to your computer and use it in GitHub Desktop.
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