p6spy is very useful for debuging hibernate query, but, there is any way to format query with the same logic of Hibernate ? :
<property name="hibernate.format_sql" value="true" />
p6spy log example :
p6spy - 1339663561390|15|0|statement|select personne0_.id as id5_,personne0_.dateNaissance as dateNais2_5_, personne0_.nom as nom5_, personne0_.prenom as prenom5_, personne0_.type as type5_ from Personne personne0_ where personne0_.nom=?|select personne0_.id as id5_, personne0_.dateNaissance as dateNais2_5_, personne0_.nom as nom5_, personne0_.prenom as prenom5_, personne0_.type as type5_ from Personne personne0_ where personne0_.nom='example'
Hibernate log example :
Hibernate:
insert
into
TABLE
(COLUMN_1, COLUMN_2)
values
(?, ?)
I think the hibernate format is more readable, and i want something like this with p6spy.
Thank you.