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.mycompany.property.Services.Crud.BuildingCrudServiceImpl.java

@Override
@Transactional(propagation = Propagation.REQUIRED)
public com.mycompany.property.model.Building remove(com.mycompany.property.model.Building entity) {
    return null;
}

From source file:cs544.wamp_blog_engine.service.impl.SettingsService.java

@Override
@Transactional(propagation = Propagation.REQUIRED)
public void addBlogCategory(Category category) {
    categoryDAO.createCategory(category);
}

From source file:com.oak_yoga_studio.service.impl.ProductServiceImpl.java

@Transactional(propagation = Propagation.REQUIRED)
@Override//w w w  .ja  v a2 s. c o m
public void addProduct(Product product) {
    try {
        productDAO.addProduct(product);
    } catch (Exception e) {

    }
}

From source file:dao.DAOPeticionAmistad.java

/**
 * //  ww w.  ja v a 2  s . c  o m
 * @param _peticion 
 */
@Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = exceptionsDAO.ActualizarPeticionAmistadException.class)
public void actualizarPeticionAmistad(PeticionAmistad _peticion) {
    em.merge(_peticion);
}

From source file:cputgroup3a.immutability.service.crud.Impl.DistributionImpl.java

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

From source file:gov.nih.nci.protexpress.service.impl.ProtExpressServiceImpl.java

/**
 * {@inheritDoc}
 */
@Transactional(readOnly = false, propagation = Propagation.REQUIRED)
public void merge(Object object) {
    getHibernateTemplate().merge(object);
}

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

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

    return null;
}

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

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

    return null;
}

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

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

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

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

    return null;
}