Announcement Announcement Module
Collapse
No announcement yet.
Parameter converter in SqlQuery Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
Working...
X