Table of contents
Transactions
An instance of
TransactionStatus
is available by default in Grails transactional service methods.
the keys in the Map must correspond to propertiesof org.springframework.transaction.support.DefaultTransactionDefinition
Account.withTransaction([propagationBehavior: TransactionDefinition.PROPAGATION_REQUIRES_NEW, isolationLevel: TransactionDefinition.ISOLATION_REPEATABLE_READ]) {
//code
}