Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final Object o1 = jdbcOperations.query("SELECT book_id, series_id, pos FROM book_series", new RowMapper<Object>() {
- @Override
- public Object mapRow(ResultSet rs, int i) throws SQLException {
- final Map<String, Object> result = new HashMap<String, Object>();
- result.put("book_id", rs.getLong("book_id"));
- result.put("series_id", rs.getLong("series_id"));
- result.put("pos", rs.getInt("pos"));
- return result;
- }
- });
- final Object o2 = jdbcOperations.query("SELECT book_id, external_id_type, external_id FROM book_external_id", new RowMapper<Object>() {
- @Override
- public Object mapRow(ResultSet rs, int i) throws SQLException {
- final Map<String, Object> result = new HashMap<>();
- result.put("book_id", rs.getLong("book_id"));
- result.put("external_id_type", rs.getLong("external_id_type"));
- result.put("external_id", rs.getString("external_id"));
- return result;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement