Search in sources :

Example 1 with ConfigurerException

use of indi.mybatis.flying.exceptions.ConfigurerException in project mybatis.flying by limeng32.

the class TransactiveService method addAccountTransactive.

@Transactional(rollbackFor = { ConfigurerException.class }, readOnly = false, propagation = Propagation.REQUIRED, isolation = Isolation.READ_COMMITTED)
public void addAccountTransactive() throws ConfigurerException {
    Role_ role2 = new Role_();
    role2.setName("role_");
    roleService.insert(role2);
    throw new ConfigurerException("qwe");
}
Also used : Role_(indi.mybatis.flying.pojo.Role_) ConfigurerException(indi.mybatis.flying.exceptions.ConfigurerException) Transactional(org.springframework.transaction.annotation.Transactional)

Aggregations

ConfigurerException (indi.mybatis.flying.exceptions.ConfigurerException)1 Role_ (indi.mybatis.flying.pojo.Role_)1 Transactional (org.springframework.transaction.annotation.Transactional)1