Daniel, there is queryForMap functionality in iBatis.  It looks like this: SqlMapExecutor.queryForMap(statementName, parameterObject, key).  The key will be a column in your result map which could be your bean.id property after the result map populates the bean.  I am not sure what you mean by populating existing beans, but I hope this helps.

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.
  

Reply via email to