Try using queryForList instead of queryForMap

-Richard

-----Original Message-----
From: jaybytez [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 21, 2006 2:51 PM
To: [email protected]
Subject: RE: Return result as Map



Here is my query:

  <select id="queryMapFacilityServiceLookup"
resultClass="java.util.HashMap">
    <![CDATA[
      SELECT facility_service_desc, facility_service_code
      FROM facility_service_lookup
    ]]>
  </select> 

And here is how I call it:

Map mappedValues =  sqlMap.queryForMap("queryMapFacilityServiceLookup",
null, "facility_service_desc","facility_service_code");

And i get a Map back with null values and one row.
--
View this message in context:
http://www.nabble.com/Return-result-as-Map-t1824496.html#a4983369
Sent from the iBATIS - User - Java forum at Nabble.com.

Reply via email to