/** * Returns a Configurer instance which has JPA versions of building blocks configured, such as a JPA based Event * Store (see {@link JpaEventStorageEngine}), a {@link JpaTokenStore} and {@link JpaSagaStore}. * <br> * This configuration should be used with an entity manager running without JTA transaction. If you are using a * entity manager in JTA mode, please provide the corresponding {@link TransactionManager} in the * {@link DefaultConfigurer#jpaConfiguration(EntityManagerProvider, TransactionManager)} method. * * @param entityManagerProvider The instance that provides access to the JPA EntityManager. * @return A Configurer instance for further configuration. */ public static Configurer jpaConfiguration(EntityManagerProvider entityManagerProvider) { return jpaConfiguration(entityManagerProvider, NoTransactionManager.INSTANCE); }
/** * Returns a Configurer instance which has JPA versions of building blocks configured, such as a JPA based Event * Store (see {@link JpaEventStorageEngine}), a {@link JpaTokenStore} and {@link JpaSagaStore}. * <br> * This configuration should be used with an entity manager running without JTA transaction. If you are using a * entity manager in JTA mode, please provide the corresponding {@link TransactionManager} in the * {@link DefaultConfigurer#jpaConfiguration(EntityManagerProvider, TransactionManager)} method. * * @param entityManagerProvider The instance that provides access to the JPA EntityManager. * @return A Configurer instance for further configuration. */ public static Configurer jpaConfiguration(EntityManagerProvider entityManagerProvider) { return jpaConfiguration(entityManagerProvider, NoTransactionManager.INSTANCE); }
/** * Returns a Configurer instance which has JPA versions of building blocks configured, such as a JPA based Event * Store (see {@link JpaEventStorageEngine}), a {@link JpaTokenStore} and {@link JpaSagaStore}. * <br> * This configuration should be used with an entity manager running without JTA transaction. If you are using a * entity manager in JTA mode, please provide the corresponding {@link TransactionManager} in the * {@link DefaultConfigurer#jpaConfiguration(EntityManagerProvider, TransactionManager)} method. * * @param entityManagerProvider The instance that provides access to the JPA EntityManager. * @return A Configurer instance for further configuration. */ public static Configurer jpaConfiguration(EntityManagerProvider entityManagerProvider) { return jpaConfiguration(entityManagerProvider, NoTransactionManager.INSTANCE); }