Class TenantJpaAutoConfiguration
java.lang.Object
com.broadleafcommerce.tenant.provider.jpa.autoconfigure.TenantJpaAutoConfiguration
@ConditionalOnProperty(name="broadleaf.database.provider",
havingValue="jpa")
@Configuration
@EnableJpaRepositories(basePackageClasses=JpaCatalogRepository.class,
repositoryFactoryBeanClass=com.broadleafcommerce.data.tracking.jpa.filtering.narrow.factory.JpaTrackableRepositoryFactoryBean.class,
entityManagerFactoryRef="tenantEntityManagerFactory",
transactionManagerRef="tenantTransactionManager",
excludeFilters=)
@EnableConfigurationProperties(TenantProperties.class)
@JpaEntityScan(basePackages="com.broadleafcommerce.tenant.provider.jpa.domain",
routePackage="com.broadleafcommerce.tenant")
@JpaDataRoute(boundPropertiesType=TenantProperties.class,
routePackage="com.broadleafcommerce.tenant",
routeKey="tenant",
supportingRouteTypes={com.broadleafcommerce.data.tracking.core.data.TrackingDataRouteSupporting.class,com.broadleafcommerce.common.messaging.data.MessagingDataRouteSupporting.class,com.broadleafcommerce.translation.data.TranslationDataRouteSupporting.class})
public class TenantJpaAutoConfiguration
extends Object
Jpa specific config for the repository and domain. This config class is also responsible for
enabling the
JpaTrackableRepository
via the @EnableJpaRepositories
declaration.- Author:
- Jeff Fischer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.broadleafcommerce.data.tracking.jpa.persistence.NativeSqlStrategy
com.broadleafcommerce.data.tracking.jpa.persistence.NativeSqlStrategy
com.broadleafcommerce.data.tracking.jpa.persistence.NativeSqlStrategy
com.broadleafcommerce.data.tracking.jpa.persistence.NativeSqlStrategy
jpaApplicationRepositoryImpl
(JpaCatalogRepository<?> catalogRepository, com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.broadleafcommerce.common.messaging.notification.NotificationStateService notificationStateService) jpaCatalogRepositoryImpl
(com.broadleafcommerce.data.tracking.jpa.persistence.NativeSqlStrategyManager sqlStrategyManager, com.broadleafcommerce.data.tracking.jpa.filtering.fetch.rsql.JpaCriteriaBuilderRsqlVisitor visitor, com.broadleafcommerce.data.tracking.core.TrackableBehaviorUtil behaviorUtil, com.broadleafcommerce.data.tracking.jpa.filtering.fetch.rsql.JpaFiltersCriteriaBuilder builder) jpaMarketplaceApplicationCatalogRepositoryImpl
(JpaCatalogRepository<?> catalogRepository, com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.broadleafcommerce.common.messaging.notification.NotificationStateService notificationStateService) com.broadleafcommerce.data.tracking.jpa.persistence.NativeSqlStrategy
com.broadleafcommerce.data.tracking.jpa.persistence.NativeSqlStrategy
-
Constructor Details
-
TenantJpaAutoConfiguration
public TenantJpaAutoConfiguration()
-
-
Method Details
-
jpaCatalogRepositoryImpl
@Bean @ConditionalOnMissingBean public JpaCustomizedCatalogRepository jpaCatalogRepositoryImpl(com.broadleafcommerce.data.tracking.jpa.persistence.NativeSqlStrategyManager sqlStrategyManager, com.broadleafcommerce.data.tracking.jpa.filtering.fetch.rsql.JpaCriteriaBuilderRsqlVisitor visitor, com.broadleafcommerce.data.tracking.core.TrackableBehaviorUtil behaviorUtil, com.broadleafcommerce.data.tracking.jpa.filtering.fetch.rsql.JpaFiltersCriteriaBuilder builder) -
jpaApplicationRepositoryImpl
@Bean @ConditionalOnMissingBean public JpaCustomizedApplicationRepository<?> jpaApplicationRepositoryImpl(JpaCatalogRepository<?> catalogRepository, com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.broadleafcommerce.common.messaging.notification.NotificationStateService notificationStateService) -
jpaMarketplaceApplicationCatalogRepositoryImpl
@Bean @ConditionalOnMissingBean public JpaCustomizedMarketplaceApplicationCatalogRepository<?> jpaMarketplaceApplicationCatalogRepositoryImpl(JpaCatalogRepository<?> catalogRepository, com.broadleafcommerce.common.extension.TypeFactory typeFactory, com.broadleafcommerce.common.messaging.notification.NotificationStateService notificationStateService) -
hsqlChildCatalogsGraphNativeSqlStrategy
@Bean public com.broadleafcommerce.data.tracking.jpa.persistence.NativeSqlStrategy hsqlChildCatalogsGraphNativeSqlStrategy(@Value("${broadleaf.jpa.id.type:STRING}") String idType) -
oracleChildCatalogsGraphNativeSqlStrategy
@Bean public com.broadleafcommerce.data.tracking.jpa.persistence.NativeSqlStrategy oracleChildCatalogsGraphNativeSqlStrategy(@Value("${broadleaf.jpa.id.type:STRING}") String idType) -
defaultChildCatalogsGraphNativeSqlStrategy
@Bean public com.broadleafcommerce.data.tracking.jpa.persistence.NativeSqlStrategy defaultChildCatalogsGraphNativeSqlStrategy(@Value("${broadleaf.jpa.id.type:STRING}") String idType) -
defaultCatalogRelationshipNativeSqlStrategy
@Bean public com.broadleafcommerce.data.tracking.jpa.persistence.NativeSqlStrategy defaultCatalogRelationshipNativeSqlStrategy() -
hsqlCatalogRelationshipNativeSqlStrategy
@Bean public com.broadleafcommerce.data.tracking.jpa.persistence.NativeSqlStrategy hsqlCatalogRelationshipNativeSqlStrategy() -
oracleCatalogRelationshipNativeSqlStrategy
@Bean public com.broadleafcommerce.data.tracking.jpa.persistence.NativeSqlStrategy oracleCatalogRelationshipNativeSqlStrategy()
-