Closed michaelborn closed 3 years ago
This adds the ability to check whether the current executing code is inside a Hibernate transaction. Useful for preventing nested transactions:
myEntity.save( flush = true, transactional = !getORMUtil().isInTransaction() );
Ohh, can you add a test for this please.
This adds the ability to check whether the current executing code is inside a Hibernate transaction. Useful for preventing nested transactions: