Hibernate version:
Hibernate 3.2.2 GA
Name and version of the database you are using:
MySQL Ver 14.12 Distrib 5.0.32, for pc-linux-gnu (i486) using readline 5.2
I know Hibernate offers plenty of statistics for the session factory, but I was wondering whether it is possible to get a hold of similar information for one single session. More specifically; I'm asking about the number of queries performed on the sql backend database. I'm reusing my session factory so that I have to make it only once and then spawn sessions off that, but I'd still like to know how many mysql queries were used in one session between its creation and its committing.
Is there a way to do this? I know there are SessionStatistics but these appear to only contain information on the number of cached entities and such.
Thanks in advance.
|