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

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

Introduction

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

Prototype

Propagation REQUIRED

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

Click Source Link

Document

Support a current transaction, create a new one if none exists.

Usage

From source file:com.tracy.immutable.service.crud.Impl.SubjectCrudServiceImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRED)
public Subject remove(Subject entity) {

    return null;

}

From source file:com.springmvc.videoteca.spring.service.SalaServiceImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRED, readOnly = false)
public void saveOrUpdate(Sala sala) {
    Sala act;//  ww w  . ja v  a2 s .  c o  m
    act = salaDAO.findById(sala.getId());
    if (act == null) {
        salaDAO.save(sala);
    } else {
        salaDAO.update(sala);
    }
}

From source file:com.tracy.immutable.service.crud.Impl.AddressCrudServiceImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRED)
public Address remove(Address entity) {

    return null;

}

From source file:com.tracy.immutable.service.crud.Impl.StudentCrudServiceImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRED)
public Student remove(Student entity) {

    return null;

}

From source file:com.tracy.immutable.service.crud.Impl.TeacherCrudServiceImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRED)
public Teacher remove(Teacher entity) {

    return null;

}

From source file:org.fits.proweb.business.UserComponent.java

@Override
@Transactional(propagation = Propagation.REQUIRED)
public void addUser(User user, String role) {
    userDao.addUser(user, role);
}

From source file:com.sihle.elections2.services.crud.Imp.DistrictCrudserviceImp.java

@Override
@Transactional(propagation = Propagation.REQUIRED)
public Districts remove(Districts entity) {
    return null;
}

From source file:com.tracy.immutable.service.crud.Impl.AllYearCrudServiceImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRED)
public AllYear remove(AllYear entity) {

    return null;

}

From source file:com.immutabledomain.phonestore.services.crud.Impl.SonyCrudServiceImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRED)
public Sony remove(Sony entity) {
    return null;
}

From source file:com.tracy.immutable.service.crud.Impl.TestMarkCrudServiceImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRED)
public TestMark remove(TestMark entity) {

    return null;

}