Beginner |
|
Joined: Tue Nov 06, 2007 5:13 am Posts: 28
|
is there a way to get the number of executed select statements per session (or per transaction) in hibernate?
the stats returned from SessionFactory.getStatistics() are too global
when I use them I cannot tell how many selects statements my current session has executed
the SessionStatistics on the other hand work on the entity level, which seems to be too low of a level.
I think I could iterate over SessionStatistics.getEntityKeys() and count the number of entires per entityName() which seems awkward
Is there any better way?
Or could I use the JDBC driver to get this info?
|
|