3

If I have a batch of rows to insert where each row gets a sequence generated id, how can I get those ids (or at least the last one) back when using JdbcTemplate?

E.g., for a single row, I know I use, among other ways

jdbcTemplate.update(PreparedStatementCreator, KeyHolder);

But there seems to be no correlating batchUpdate method with a KeyHolder parameter.

ticktock
  • 1,593
  • 3
  • 16
  • 38

0 Answers0