I would like to do the following
private List<Number> getIds(List<String> names) {
    String query = "SELECT id FROM months WHERE name IN (?)";
            ...
    }
How can I pass my List<String> names to the '?' in the query above? I am looking for a dynamic solution as the size of the given list will vary.
I am using Spring 3.0 with Oracle 11.2.0.2.
Thanks.
 
    