Menu

Can iBatis show sql ?

rosen
2004-11-24
2013-04-11
  • rosen

    rosen - 2004-11-24

    Just like Hibernate

    <prop key="hibernate.show_sql">true</prop>

    Thx
    rosen

     
    • Kris Jenkins

      Kris Jenkins - 2004-11-24

      The answer is yes.  You need to set your logging package to DEBUG java.sql.*.  So for example, I've got this in my log4j.xml file:

      <category name="java.sql">
      <priority value="DEBUG"/>
      </category>

      HTH,
      Kris

       

Log in to post a comment.