Quote:
IMHO, that is not efficient... Think about more than 10 criterion...
ibatis will go through all your defined parameters and set up a where clause, where with hibernate, you would go though you parameters and set up the filters.
I am not sure why you say one is more efficient to the other. Looks pretty much the same to me.
Also, efficiency is relative. You are talking about executing 5-10 java method calls prior to an IO operation. In my opinion, executing a dozen java method calls will not compare to an IO database call over a JDBCDriver over a network;
But that's just my opinion.
Good luck :)