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