Re: queryForMap() ordering

2009-10-21 Thread George.Francis
sorry, I got confused there for a moment. ArrayList is fine. Thanks again. -- View this message in context: http://www.nabble.com/queryForMap%28%29-ordering-tp25997320p26003892.html Sent from the iBATIS - User - Java mailing list archive at Nabble.com.

Re: queryForMap() ordering

2009-10-21 Thread George.Francis
Thanks Nathan, If I use queryForList() I get an ArrayList which is also not an order-sensitive implementation of List. I guess what I'm missing is how to get either queryForList() to return a LinkedList, or queryForMap() to return a LinkedHashMap -- View this message in context: http://www.na

Re: queryForMap() ordering

2009-10-21 Thread George.Francis
I've also tried: but this just makes queryForMap() return a HashMap with LinkedHashMaps as values... George.Francis wrote: > > Sorry if this is obvious, but how do I change the Map implementation > returned by getSqlMapClientTemplate().queryForMap(...). At the moment

Re: queryForMap() ordering

2009-10-21 Thread George.Francis
class used for the values in the HashMap returned from the queryForMap(). I hope that makes sense. nmaves wrote: > > what is your result class for the sqlmap? Have you tried to use > "java.lang.LinkedHashMap" ? > Nathan > > On Wed, Oct 21, 2009 at 12:00 PM, George.F

queryForMap() ordering

2009-10-21 Thread George.Francis
I've tried to find the doco for this, but havent so far. In iBatis, if I use queryForMap(), the resulting Map ordering (predictably) doesnt follow the order-by clause of the query (it seems to always order by the Key property value). Is there an API-level way to determine the Map sort order, or is