@Configuration @ConditionalOnBean(value=javax.persistence.EntityManagerFactory.class) public class JpaAutoConfiguration extends Object
Constructor and Description |
---|
JpaAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
EntityManagerProvider |
entityManagerProvider() |
PersistenceExceptionResolver |
persistenceExceptionResolver(DataSource dataSource) |
JpaSagaStore |
sagaStore(Serializer serializer,
EntityManagerProvider entityManagerProvider) |
TokenStore |
tokenStore(Serializer serializer,
EntityManagerProvider entityManagerProvider) |
@Bean @ConditionalOnMissingBean public EntityManagerProvider entityManagerProvider()
@Bean @ConditionalOnMissingBean public TokenStore tokenStore(Serializer serializer, EntityManagerProvider entityManagerProvider)
@Lazy @Bean @ConditionalOnMissingBean(value=SagaStore.class) public JpaSagaStore sagaStore(Serializer serializer, EntityManagerProvider entityManagerProvider)
@Bean @ConditionalOnMissingBean @ConditionalOnBean(value=javax.sql.DataSource.class) public PersistenceExceptionResolver persistenceExceptionResolver(DataSource dataSource) throws SQLException
SQLException
Copyright © 2010–2023. All rights reserved.