You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-cs@ibatis.apache.org by Michael Schall <mi...@gmail.com> on 2008/06/12 23:46:34 UTC
Multiple ResultMap Support
I'm trying to use the multiple resultset support in one of my maps. I only
receive one list of objects back. I expected a list of lists back. Is the
following supported somehow? If not I suppose I could loop through and
split the list by type myself.
Thanks
Mike
<select id="GetMultipleResultMap" resultMap="account, category">
select * from accounts
select * from categories
</select>
IList list = sqlMap.QueryForList("GetMultipleResultMap", null);
IList<Account> accountList = list[0];
IList<Category> categoryList = list[1];