Created
February 2, 2016 11:54
-
-
Save fedotxxl/612633c488f64e3ff79c 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
List<Object[]> params = links | |
.stream() | |
.map(o -> new Object[] {o.getTagId(), o.getTagOriginalId()}) | |
.collect(Collectors.toList()); | |
jdbcTemplate.batchUpdate("UPDATE tag_original SET tag_id = ? WHERE id = ?", params); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment