Thanks loads for that - Will do. I have an unrelated question. In our app we've got lazy loading enabled with the cglib enhancement enabled. Sometimes though I'd like to use eager loading instead.
Is there a handy way of forcing cglib to return the actual object rather than the cglib proxy object? I ask because we have data load routines that use reflection to update object values and this fails as the object class returns as enhancerbylib rather than object actual class. Thanks Charlie --- Larry Meadors <[EMAIL PROTECTED]> wrote: > You can't do that now with just the xml > configuration, but you could > do it with two calls to your sqlmap client (one to > queryForObject() > and one to queryForMap()). > > Larry > > > On Nov 22, 2007 8:33 AM, charlie bird > <[EMAIL PROTECTED]> wrote: > > Here's a question. > > > > When building an object with child objects in the > app > > I'm building I uses Lists to hold the the child > > objects by mapping the id of the parent Object > > (one-to-many) to a <select> in the child's sqlMap. > > > > Is there a way to configure Ibatis to return a Map > of > > child objects keyed on something-or-other rather > than > > a List? > > At moment I generate the Map on the fly in the > parent > > Object but elegant it aint! > > > > Thanks > > > > Charlie > > > > > > > ___________________________________________________________ > > Yahoo! Answers - Got a question? Someone out there > knows the answer. Try it > > now. > > http://uk.answers.yahoo.com/ > > > ___________________________________________________________ Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html