You should not change the signature of your DAO method, the only problem to consider is how you create your mapping. iBatis supports only one input parameter, and you have to solve your class ( parameterType attribute) to pack two source parameters into one.
In this case, you can (among other parameters) put two parameters in the Map ( HashMap , as a rule), or (if the parameters correspond to the properties of the UserBean class) pass a dummy UserBean with these two properties.
In both cases, packaging (creating a HashMap or a dummy UserBean that contains two parameters) will be done inside your public UserBean getUser(String userName, String password) method.
leonbloy
source share