RE: Pass multiple parameters using Map

2008-04-16 Thread Jason Kratz
No offense here but did you read the documentation PDF?  This exact topic is discussed on page 30 of the developer's guide.  There are multiple ways of doing what you want but your specific case is on page 30. Jason   Hi, Here's a newbie question for iBATIS: I need to pass three parameters to

Re: Pass multiple parameters using Map

2008-04-16 Thread Brandon Goodin
Map param = new HashMap();param.put("someProp",someValue); param.put("otherProp",someOtherValue); sqlMapClient.queryForList("Foo.selectForSomething",param); select id,someColumn,someOtherColumn,someName from foo where someColumn=#someProp# and someOtherColumn=#otherProp# Brandon Goodin On Wed,

Pass multiple parameters using Map

2008-04-16 Thread Li Ma
Hi, Here's a newbie question for iBATIS: I need to pass three parameters to a query. I don't want to create a new class just for this one query, so I tried to use Map as parameterClass even parameterMap, nothing worked. Anyone can provide a sample of doing such kind of task? I did Google and sear