ResultHandeler not invoked

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ResultHandeler not invoked

Francesco Viscomi
Hi all,
I call
session.select("selectCash",paramsMap,(org.apache.ibatis.session.ResultHandler) handler);

where selectCash is a query defined in sqlMapper.xml, paramsMap is an hash map containing some parameter and
handler is an implementation of
ResultHandler.

I do not receive any error but i think that the code inside the handler is not executed; where I'm wrong?

thanks

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: ResultHandeler not invoked

Iwao AVE!
Hi Francesco,

Is this the same issue you posted earlier?
Your class needs to implement ResultHanlder, not ResultSetHandler.
And be sure to use 3.4.6 if selectCache calls a stored procedure.

There also is a test case (it uses PostgreSQL).

If it still does not work, please post the details (stored procedure definition, <select />, Java code).

Regards,
Iwao

2018-03-27 6:18 GMT+09:00 Francesco Viscomi <[hidden email]>:
Hi all,
I call
session.select("selectCash",paramsMap,(org.apache.ibatis.session.ResultHandler) handler);

where selectCash is a query defined in sqlMapper.xml, paramsMap is an hash map containing some parameter and
handler is an implementation of
ResultHandler.

I do not receive any error but i think that the code inside the handler is not executed; where I'm wrong?

thanks

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.



--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.