aspose file tools*
The moose likes Object Relational Mapping and the fly likes IBATIS - multiple parameter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "IBATIS - multiple parameter" Watch "IBATIS - multiple parameter" New topic
Author

IBATIS - multiple parameter

Bruno Frascino
Ranch Hand

Joined: Jul 22, 2003
Posts: 55
Hello,

First time using ibatis. I am having problem trying to passe more than one parameter to my query.

I have got:


And my DAO implementation:


It seems to be right, I get no error, but it is not because it doesn't return any record!! I think there is something to do with the multiple parameters, because when I hardcode one of the parameters (#employeeId# or #userId# ) it returns the data I need.

Any help!?

I also don't know how to enable the sql statements output, that could maybe help.

Thanks!


--BJCK--
Imre Tokai
Ranch Hand

Joined: Jun 04, 2008
Posts: 130
Here is an example for resultset:




Regards
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IBATIS - multiple parameter