Tuesday, October 26, 2010

View SQL generated in IBATIS

To View the SQL Being executed in Ibatis.
Use com.ibatis.sqlmap.engine.mapping.SimpleDynamicSql.java's getSql() method in Ibatis.jar. This method gives you the sql being executed by the ibatis data mapper after all the dynamic elements have been replaced.

Sphere: Related Content

You can also breakpoint in your favourite IDE of your choice. I usually did this for the SimpleDynamicSql class of Ibatis.

No comments: