ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From proge.alli...@daimlerchrysler.com
Subject Re: Is it possible that resultClass="java.util.HashMap"?
Date Thu, 09 Nov 2006 15:02:19 GMT
<resultMap id=”getResult” class=”java.util.HashMap”>
      <result property=”id” column=”id”/>
      <result property=”name” column=”name”/>
</resultMap>

<select id="getIDMap" resultMap="getResult">
  select id, name from emp
</select>


Cordiali saluti/Kind Regards.

Alessandro Allievi

(Embedded image moved to file: pic24182.gif)
www.progesoftware.it
Via Mentore Maggini, 48/50
00143 Roma
Phone +39 06.5042621
Fax +39 06.5042676
mailto: aallievi@progesoftware.it


                                                                           
             jane22124@yahoo.c                                             
             om                                                            
                                                                        To 
             09/11/2006 15.51          user-java@ibatis.apache.org         
                                                                        cc 
                                                                           
             Please respond to                                     Subject 
             user-java@ibatis.         Is it possible that                 
                apache.org             resultClass="java.util.HashMap"?    
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Hello,

Is it possible that resultClass="java.util.HashMap"? I have a situation
that it would be nice that result is in a HashMap with ID is the key and
name is the value. like

<select id="getIDMap" resultClass="java.util.HashMap">
  select id, name from emp
</select>

Is that a way that I can config/implement it?

Thanks a lot,
Jane


 Sponsored Link

$200,000 mortgage for $660/mo - 30/15 yr fixed, reduce debt, home equity -
Click now for info

Mime
View raw message