Hi there,

I would like to know if there is any way of supplying a parameter converter to a SqlQuery subclass (actually a MappingSqlQueryWithParameters subclass) so that I don't have to convert an entire list of objects into a new list of Long values.

Ideally I would be able to supply a list of my objects, say AccountId objects, and at the relevant time have some piece of code (supplied by me) call it's getId() method such that the SqlQuery (or RdbmsOperation etc) can then call ps.setLong(paramIdx, longValue).

Any ideas?

Cheers

Mike