|
Thanks for the reply.
I'm well aware of queryForMap, but the problem isn't
grouping the objects.
Basically, I have a bean "graph" (or tree, or whatever)
that has been constructed before there is enough information to run the final
query. Also, I don't know the bean class before hand (and don't want to add it
explicitly to the resultMap or resultClass argument)
As an alternative solution to my problem, if there was a
way to do a queryForList, but specify the result class at runtime, that would be
extremely helpful. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 1:24 PM To: [email protected] Subject: Re: Populating existing beans... Diran Daniel Pitts wrote: I have a Map<Integer, MyBean> byId; Which was built by "byId.put(myBean.getId(), myBean);" MyBean is the base class, there are many types of "MyBean" objects. Is there a away to tell iBATIS to use the bean in "byId" map as the result object? Or do I have to get the result, and copy the values over myself? I know it can be done with queryForObject(String, Object, Object); but I need it for something like queryForList or queryForMap Thanks, Daniel. |
- RE: Populating existing beans... Daniel Pitts
- Re: Populating existing beans... Chris Lamey
- RE: Populating existing beans... Poitras Christian
- RE: Populating existing beans... Daniel Pitts
- RE: Populating existing beans... Chris Lamey
- Re: Populating existing beans... Diran Ayandele
- RE: Populating existing beans... Daniel Pitts
