How to format real SQL in Hibernate
Author: Venkata Sudhakar
The below example shows how to format real SQL queries in Hibernate. As you are aware Hibenate generates dialect specific native SQL queries which are usually lengthy. To view the formatted SQLs just set format_sql flag.
Incase you are using Hibernate with Spring integration