Grails, p6spy and Sql Profiler
Wednesday, June 17th, 2009There are several ways to have Grails log SQL statements that Hibernate is sending to the database under the covers of GORM. The first is the loggingSql flag in DataSource.groovy: loggingSql=true This will show you the prepared statement that Hibernate is generating, like this: select this_.id ...
