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.PatientsCrud.Impl.ICUCrudServiceImpl.java

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

    return null;
}

From source file:com.karriem.tp2.immutable_domain_model_assignment.Service.Crud.MedicineCrud.Impl.MedicineCrudServiceImpl.java

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

    return null;
}

From source file:com.banda.truckmanagementmodel.services.crud.Impl.RefrigeratedContainerCrudServiceImpl.java

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

From source file:com.karriem.tp2.immutable_domain_model_assignment.Service.Crud.PatientsCrud.Impl.ComaCrudServiceImpl.java

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

    return null;
}

From source file:com.Services.Impl.PlayerList.SoccerList_CrudImpl.java

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

    if (entity == null) {
        try {/*from w  ww.  j  av  a2  s  . co m*/
            throw new Exception();
        } catch (Exception ex) {
            Logger.getLogger(SoccerList_CrudImpl.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    return entity;
}

From source file:com.google.ie.business.dao.impl.AuditDaoImpl.java

@Override
@Transactional(readOnly = false, propagation = Propagation.REQUIRES_NEW)
public void saveAudit(Audit audit) {
    getJdoTemplate().makePersistent(audit);

}

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

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

From source file:com.Services.Impl.Players.SoccerPlayer_CrudImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRES_NEW)
public Soccer_player merge(Soccer_player entity) {
    if (entity == null) {
        try {//from  ww w  .ja  v a  2 s .  co  m
            throw new Exception();
        } catch (Exception ex) {
            Logger.getLogger(SoccerPlayer_CrudImpl.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    return entity;
}

From source file:com.karriem.tp2.immutable_domain_model_assignment.Service.Crud.MedicalAidCrud.Impl.MedicalAidCrudServiceImpl.java

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

    return null;
}

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

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

    return null;
}