ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anita m <anita1...@yahoo.com>
Subject Returning hashmap of objects instead of list
Date Wed, 12 Apr 2006 21:12:26 GMT
I have the following

<resultmap id="allCategories" class="Category" >
<result property="categoryid" column="categoryid" />
<result property="prods" resultMap="mymap.products"/>

<resultMap id="mymap.products" class="Product" >
<result property="name" column="productname"/>
<statement id="getAll" resultMap="allCategories">

when i execute "getAll", category.getProds() returns
Collection of procuts. Is there any way I can get
category.getProds to return a HashMap ?

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

View raw message