All Downloads are FREE. Search and download functionalities are using the official Maven repository.

brainslug.jpa.spring.SpringJpaAsyncTriggerStore Maven / Gradle / Ivy

The newest version!
package brainslug.jpa.spring;

import brainslug.flow.execution.async.AsyncTrigger;
import brainslug.jpa.Database;
import brainslug.util.IdGenerator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Transactional
public class SpringJpaAsyncTriggerStore extends brainslug.jpa.JpaAsyncTriggerStore {
  @Autowired
  public SpringJpaAsyncTriggerStore(Database database, IdGenerator idGenerator) {
    super(database, idGenerator);
  }

  @Override
  @Transactional(propagation = Propagation.REQUIRES_NEW)
  public AsyncTrigger updateTrigger(AsyncTrigger asyncTrigger) {
    return super.updateTrigger(asyncTrigger);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy