maxmello
04/22/2023, 8:46 PMcontext(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