What class in Hibernate generates the SQL statements that gets logged?

Viewed 3585

I'm having trouble with an ObjectNotFoundException where Hibernate appears to be performing a select statement where I didn't expect it too, due to lazy loading being true. I suspect something to do with AOP, but I can't change anything since I'm using someone else's framework.

I was thinking of putting a breakpoint in the place where the select statement gets generated into my log, that way I can see who's triggering it. What's the Hibernate class I should be setting breakpoints on?

3 Answers
Related