Is there an Ibatis setting to view the generated SQL like how Hibernate has show_sql=true?
thanks
Is there an Ibatis setting to view the generated SQL like how Hibernate has show_sql=true?
thanks
You could try p6spy.
This is not exactly a Ibatis property setting to view the generated SQLs. p6spy is a kind of library you can easily plugin to your Java application.
It logs you the generated sql and also resultSet (Which is great, actually). I used for issue tracking in dynamic queries. It prints it in a log file.
This mkyong blog may give you how-to integrate it with your Ibatis. (mkyong-blog-fan :))
No, you can't. Log it in your database server.