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:com.karriem.tp2.immutable_domain_model_assignment.Service.Crud.EquipmentCrud.Impl.MedicalEquipmentCrudServiceImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public MedicalEquipment merge(MedicalEquipment entity) {

    return null;
}

From source file:com.karriem.tp2.immutable_domain_model_assignment.Service.Crud.PaymentMethodCrud.Impl.MonthlyPaymentCrudServiceImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public MonthlyPayments merge(MonthlyPayments entity) {

    return null;
}

From source file:com.mycompany.secondAttemptCrud.CarMERCEDEZCrudServiceImpl.java

@Transactional(propagation = Propagation.REQUIRES_NEW)
public carMERCEDEZ merge(carMERCEDEZ entity) {
    // throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    return null;//  w w w.  j  a v a2  s  . co m
}

From source file:com.Services.Impl.SportRecords.CricketRecords_CrudImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public Cricket_records merge(Cricket_records entity) {
    if (entity == null) {
        try {/*  w  w w  . jav a2 s .  co m*/
            throw new Exception();
        } catch (Exception ex) {
            Logger.getLogger(CricketRecords_CrudImpl.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    return entity;
}

From source file:com.karriem.tp2.immutable_domain_model_assignment.Service.Crud.EmployeesCrud.Impl.GeneralStaffCrudServiceImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public GeneralStaffPersonal merge(GeneralStaffPersonal entity) {

    return null;
}

From source file:com.karriem.tp2.immutable_domain_model_assignment.Service.Crud.TreatmentCrud.Impl.GeneralTreatmentCrudServiceImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public GeneralTreatments merge(GeneralTreatments entity) {

    return null;
}

From source file:com.karriem.tp2.immutable_domain_model_assignment.Service.Crud.EmployeesCrud.Impl.CleaningStaffCrudServiceImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public CleaningStaffPersonal merge(CleaningStaffPersonal entity) {

    return null;
}

From source file:com.mycompany.secondAttemptCrud.CarVOLGSWAGENCrudServiceImpl.java

@Transactional(propagation = Propagation.REQUIRES_NEW)
public carVOLGSWAGEN merge(carVOLGSWAGEN entity) {
    //throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    return null;/*from  w  w  w  .  j  a  v a 2  s .co m*/
}

From source file:com.Services.Impl.Employees.CoachCrudServiceImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public Coach merge(Coach entity) {

    if (entity == null) {
        try {/*from w w w.ja  v a2s. c  o  m*/
            throw new Exception();
        } catch (Exception ex) {
            Logger.getLogger(CoachCrudServiceImpl.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    return entity;
}

From source file:org.jdbi.v3.spring4.DummyService.java

@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public void inRequiresNew(Callback c) {
    c.call(jdbi);
}