W.r.t. my problem above, I started looking into co...
# exposed
m
W.r.t. my problem above, I started looking into context receivers which are nice, because I can just say
context(Transaction)
and then somewhere further up the call chain, I will define my transaction on the proper DB connection. This made me realize, you may also receive “No transaction in context” errors at runtime sometimes. Once context receivers are stable, will all the methods like
find
get a
context(Transaction)
? What would be a huge upgrade, because of the compile time verification. As a coding convention, I will start adding this
context(Transaction)
to all my custom query functions inside my EntityClasses/DAOs