-
May 8th, 2009, 11:11 AM
#1
Parameter converter in SqlQuery
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
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules