A Spring JDBC question: I use a lot of objects as bind variables which are not automatically mapped to their JDBC equivalents, e.g. jdbctemplate.query(sql, foo, bar, wee) with foo, bar and wee being instances of objects which are not covered by the JDBC type autoconversion.
Can anyone on SO suggest a best practice for a conversion strategy for such cases? Most cases would boil down to call toString() on the instances anyways.