Hi,
I wonder if this can be achieve.
In a webapplication, I have (in development environment) a section at the bottom of the page which show useful information like the details of the HttpRequest, HttpSession, etc.
Is it possible to capture these details :
1. SQL statements executed,
2. Bind parameter values, and
3. Execution timing
A quick browse at the hibernate source did not reveal any "hooks" to achieve this.
I imagine there are 2 general ways to do this:
1. Thru capturing/parsing the log (some sort of log4j plugin), or
2. Modify hibernate source to add hooks.
I wonder if there is anyone else has tried to do the same.
Regards.
-chacs
|