jQuery in Action, 3rd edition
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "IBATIS - multiple parameter" Watch "IBATIS - multiple parameter" New topic

IBATIS - multiple parameter

Bruno Frascino
Ranch Hand

Joined: Jul 22, 2003
Posts: 55

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.


Imre Tokai
Ranch Hand

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

I agree. Here's the link: http://aspose.com/file-tools
subject: IBATIS - multiple parameter
It's not a secret anymore!