andrewoma
09/10/2016, 1:56 AMManagedThreadLocalSession
if for where something external manages transactions, often via @Transaction
attributes. There's a couple of examples but nothing for Guice. Personally, I wouldn't recommend this path. I'd use ThreadLocalSession
and use session.transaction {}
blocks. These blocks are re-entrant so there's no problem nesting code