Created
April 23, 2019 02:04
-
-
Save tkstone/e26314cb7d12fd33d7211afb5305c5dd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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