The resultType of LinkedHashMap did retain column order of my sql

188 Views Asked by At

I have a free format sql which I passed into the myBatis mapper. I have set the resultType = "java.util.LinkedHashMap". But the result returned did not retain the column order of my sql. I have up to 65 columns in my sql select statement. It is very important to keep the original order. How can I make this work? Thanks for any help!

0

There are 0 best solutions below