The 3rd parameter is the getXXX method to use as the Map key when put(Object
key, Object value) is called...
E.G.
String userId = "BILL";
Map roles = sqlMapClient.QueryForMap("getUserRoles", userId, "roleCode")
This will create a HashMap containing all the roles for BILL, which are
represented as UserRole objects, keyed by the getRoleCode() method of each
UserRole instance added to the map.
-----Original Message-----
From: Folashade Adeyosoye [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 29, 2005 11:13 AM
To: [email protected]
Subject: RE: Automatically Create Maps
What is the 3rd parameter (keyProperty) used for
QueryForMap(string statementName, object parameterObject, string
keyProperty)
Shardayyy
-----Original Message-----
From: Larry Meadors [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 29, 2005 10:39 AM
To: [email protected]
Subject: Re: Automatically Create Maps
Yes, there is.
On 6/29/05, Mike Fotiou <[EMAIL PROTECTED]> wrote:
>
> Is there any way in IBATIS to create a Map via the XML file instead of a
> List/Collection? This is possible programmatically using queryForMap. If
> not, would it be useful in a future version of IBATIS?