Example usage for org.springframework.transaction.annotation Propagation REQUIRES_NEW

List of usage examples for org.springframework.transaction.annotation Propagation REQUIRES_NEW

Introduction

In this page you can find the example usage for org.springframework.transaction.annotation Propagation REQUIRES_NEW.

Prototype

Propagation REQUIRES_NEW

To view the source code for org.springframework.transaction.annotation Propagation REQUIRES_NEW.

Click Source Link

Document

Create a new transaction, and suspend the current transaction if one exists.

Usage

From source file:org.seedstack.spring.fixtures.TransactionalService.java

@Transactional(value = "contact", propagation = Propagation.REQUIRES_NEW)
public void doSomethingWithNestedTransactions() {
    emService.testContactTransaction();/* ww w.ja va  2  s . co  m*/
    emService.nestedUserTransaction();
}

From source file:cs544.letmegiveexam.service.UserExamService.java

@Transactional(propagation = Propagation.REQUIRES_NEW)
public void add(UserExam userExam) {
    userExamDAO.add(userExam);
}

From source file:service.crud.Impl.crudEggImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public egg move(egg entity) {
    return null;
}

From source file:service.crud.Impl.crudBerryImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public berry move(berry entity) {
    return null;
}

From source file:service.crud.Impl.crudHmMovesImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public hmMoves move(hmMoves entity) {
    return null;
}

From source file:service.crud.Impl.crudPotionsImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public potions move(potions entity) {
    return null;
}

From source file:service.crud.Impl.crudTmMovesImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public tmMoves move(tmMoves entity) {
    return null;
}

From source file:service.crud.Impl.crudDaycareImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public daycare move(daycare entity) {
    return null;
}

From source file:com.mycompany.property.Services.Crud.FarmCrudServiceImpl.java

@Transactional(propagation = Propagation.REQUIRES_NEW)
public Farm merge(Farm entity) {
    return null;
}

From source file:com.mycompany.property.Services.Crud.BondCrudServiceImpl.java

@Transactional(propagation = Propagation.REQUIRES_NEW)
public Bond merge(Bond entity) {
    return null;
}