How can I use IN query with NamedParameterJdbcTemplate? I put ‘surname1′,’surname2′ and surname1’,’surname2 in params, so :surname would be ‘surname1′,’surname2’, but both didn’t work. When there was only gender parameter, it worked. How can I do this? Answer if we have an Object like this: then:
Tag: named-parameters
How to perform batch update in Spring with a list of maps?
New to Spring, I am trying to insert a List<Map<String, Object>> into a table. Until now I have been using the SqlParameterSource for batch update, which works fine when a java bean is supplied to them. Something like this: However, I tried the same technique with a list of maps in place of a bean, it failed (rightly so). The