New to Spring, I am trying to insert a List
into a table. Until now I have been using the SqlParameterSource
for b
As per Spring NamedParameterJDBCTemplate
docs, found here, this method can be used for batch updating with maps.
int[] batchUpdate(String sql, Map
The real challange was to a get an array of Map
from a corresponding List
. I used the following code to get the array and perform the batch update.
public static Map[] getArrayData(List