Hi,
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
Aaah, many thanks, so I think I'd better try with LinkedHashMap. Will test
it in the evening.
On Fri, Jul 4, 2008 at 4:56 PM, Larry Meadors [EMAIL PROTECTED]
wrote:
Maps in Java are not ordered.
public static void main(String[] args) {
Map m = new HashMap();
m.put(this,
Neils FTW: The same code with that map type produces this output:
this
is
a
test
Cool trick!
Larry
On Fri, Jul 4, 2008 at 7:05 AM, Niels Beekman [EMAIL PROTECTED] wrote:
Use java.util.LinkedHashMap