[hibernate-dev] Number of SQL statements

Thomas Reinhardt thomas at reinhardt.com
Fri Sep 22 10:34:37 EDT 2017


Hello Hibernate Team,

is there a good way to check in a junit test which number of sql 
statements are generated ?
I want to tackle some of the lazy loading/class enhancement issues and 
those need good tests of course.

Somehow related: I have a (rather trivial) fix for HHH-7842 (Hibernate 
Criteria does not respect fetch mode, when alias is used). As this is 
related to the now deprecated Hibernate Criteria API is there any chance 
my fix gets accepted or should I spare my time?


Thanks,
     Thomas


More information about the hibernate-dev mailing list