Is there anyway to get the generated keys when using Spring JDBC batchUpdate?
Posted
by MalcomTucker
on Stack Overflow
See other posts from Stack Overflow
or by MalcomTucker
Published on 2010-03-11T09:29:04Z
Indexed on
2010/06/12
12:02 UTC
Read the original article
Hit count: 184
I am using JDBC and want to batch insert, but I need the generated keys for the next round of inserts - is there anyway to accomplish this?
MapSqlParameterSource[] batchArgs ....
DAL.getNamedParameterTemplate().batchUpdate("INSERT INTO...", batchArgs);
Thanks
© Stack Overflow or respective owner