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/
>

Reply via email to