Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public class RestMapper implements RowMapper<Rest>{
@Override
public Rest mapRow(ResultSet rs, int rowNum) throws SQLException {
Rest rest = new Rest();
rest.setId(rs.getInt("id"));
rest.setKey(rs.getString("key"));
rest.setValue(rs.getString("value"));
RestResult restResult = new RestResult();
restResult.setId(rs.getInt("id"));
restResult.setRand(rs.getInt("rand"));
return rest;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.