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?