You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by "Rafiq, Adnan" <ar...@carreker.com> on 2005/04/11 20:16:43 UTC

Maps with HashMaps

My SQL statement looks like this:
SELECT COL_A, COL_B
FROM TABLE_A
 
I need to return a List of HashMap(s) where COL_A forms the key and COL_B is
the corresponding value. 
 
Of course, one way to achieve this is to declare a Javabean with two
instance variables colA and colB and use that class in conjuction with the
queryForMap method.
 
Is it possible to return a List of HasMaps without declaring an explicit
JavaBean?