ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rafiq, Adnan" <ara...@carreker.com>
Subject Maps with HashMaps
Date Mon, 11 Apr 2005 18:16:43 GMT
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?

 

Mime
View raw message