use of indi.mybatis.flying.exceptions.Configurer2Exception in project mybatis.flying by limeng32.
the class TransactiveService2 method addAccount2Transactive.
@Transactional(rollbackFor = { Configurer2Exception.class }, readOnly = false, propagation = Propagation.REQUIRED, isolation = Isolation.READ_COMMITTED)
public void addAccount2Transactive() throws Configurer2Exception {
Role2_ role2 = new Role2_();
role2.setName("role2_");
role2Service.insert(role2);
throw new Configurer2Exception("asd");
}
use of indi.mybatis.flying.exceptions.Configurer2Exception in project mybatis.flying by limeng32.
the class TransactiveService2 method addAccount2Transactive2.
@Transactional(rollbackFor = { Configurer2Exception.class }, readOnly = false, propagation = Propagation.REQUIRED, isolation = Isolation.READ_COMMITTED)
public void addAccount2Transactive2() throws Configurer2Exception {
Role_ role = new Role_();
role.setName("role_");
roleService.insert(role);
Role2_ role2 = new Role2_();
role2.setName("role2_");
role2Service.insert(role2);
throw new Configurer2Exception("zxc");
}
Aggregations