Sure, you have two methods in SqlMapExecutor: queryForMap(String id, Object parameterObject, String keyProp) queryForMap(String id, Object parameterObject, String keyProp, String valueProp)
the second one is exactly for yous needs Regards Michal Malecki ----- Original Message ----- From: "Kinjal Sonpal" <[EMAIL PROTECTED]> To: "iBatis mailing list" <[email protected]> Sent: Tuesday, July 26, 2005 12:55 PM Subject: Mapping multiple records to key-value pair Dear All, My select query returns a typical set of key-value pairs. In plain jdbc world, I would run a while loop and map.put(resultSet.getString("mykey"), resultSet.getString("myvalue") would serve. Is it possible to get the same effect with iBatis? Thanks and regards, Kinjal Sonpl
