3 ms·
At least in Hibernate, you can set to print the actual queries in console (or text file, depending how your logger is set). http://stackoverflow.com/a/2538954/
by moondowner 14y ago
At least in Hibernate, you can set to print the actual queries in console (or text file, depending how your logger is set).
http://stackoverflow.com/a/2538954/228692 http://stackoverflow.com/a/2538954/228692
That way, during development you can see which are the actual statements executed. I say during development because after that, in production, you'd be better off filling log files with these stuff :)
And I can answer your question (for Hibernate), that will be one query.