Sunday, May 04, 2008

Getting Hibernate to format generated SQL

Use the configuration property hibernate.format_sql to have Hibernate format generated SQL. This feature needs to be used in conjunction with the hibernate.show_sql configuration property. Both need to be set to true to get nicely formatted SQL. Very handy for understanding what Hibernate is doing.

3 comments:

  1. Hi Chris, This didn't exactly answer my question, but I wanted to say "Hi". It was kind of cool to see this page pop up in my Google search.

    - Jon

    ReplyDelete
    Replies
    1. Hey Jon. Thanks for popping in and saying hi.

      Delete