I am using the super cool jdbcTemplate (more specifically the NamedParameterJdbcTemplate) for running a query with an IN clause. The list that I wish to query on however is an enum so I get the error: "incompatible data type in conversion".
I've noticed that every where I query with this enum I have to call toString() on it. Is there a way that I can tell jdbcTemplate to take the String value of the objects in the list?