ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niels Beekman" <n.beek...@wis.nl>
Subject RE: Result HashMap elemnt order
Date Fri, 04 Jul 2008 13:05:21 GMT
Use java.util.LinkedHashMap



From: Nicholoz Koka Kiknadze [mailto:kiknadze@gmail.com] 
Sent: Friday, July 04, 2008 2:19 PM
To: user-java@ibatis.apache.org
Subject: Result HashMap elemnt order



I get results using resultClass="java.util.HashMap" and I expected that
if I iterate values of the HashMap the order will correspond to the
order in my fields. However it does not. Is that normal behavior?

In other words I have 'Select f1, f2, f3 from Blah', and iterating in
the HashMap values I get something like f2,f1,f3 

iBatis version


View raw message