title: How does P6SPY work?
body: <p>Pretty much everything in the question. I just discovered p6spy in association with hibernate which is really cool to see the actual sql queries, though I'm quite baffled on how it works.<br>
  So how does it work?  </p>