I'm trying to query with JdbcTemplate
using a list to match:
List foos = jdbcTemplate.query("select * from foo where name IN (?)",
new Object[] { Arrays.asList("foo1", "foo2", "foo3")},
new FooMapper()
);
Result: the database columns are not matched, even though the name
column equal the string foo1
. Why?
If possible with JdbcTemplate
without named parameters.