iBatis multiple parameter mapper method

Posted by jjczopek on Stack Overflow See other posts from Stack Overflow or by jjczopek
Published on 2010-05-26T20:09:07Z Indexed on 2010/05/31 14:13 UTC
Read the original article Hit count: 561

Filed under:
|

Hi,

Let's say I have a query getUser with two parameters - userName and password. I'd like to have a mapper method looking like this:

public UserBean getUser(String userName, String password);

Is there any way I can achieve something like that? Or maybe I should pass in my mapper method map of parameters (and some parameterMap in my xml mapper)?

public UserBean getUser(Map<String, Object> paramMap);

I'm looking forward for some hints and explanations.

© Stack Overflow or respective owner

Related posts about ibatis

Related posts about mapper