Class OfferJpaAutoConfiguration

java.lang.Object
com.broadleafcommerce.promotion.offer.provider.jpa.autoconfigure.OfferJpaAutoConfiguration

@ConditionalOnProperty(name="broadleaf.database.provider", havingValue="jpa") @Configuration @JpaEntityScan(basePackages="com.broadleafcommerce.promotion.offer.provider.jpa.domain", routePackage="com.broadleafcommerce.promotion.offer") @EnableJpaRepositories(basePackageClasses=JpaOfferRepository.class, repositoryFactoryBeanClass=com.broadleafcommerce.data.tracking.jpa.filtering.narrow.factory.JpaTrackableRepositoryFactoryBean.class, entityManagerFactoryRef="offerEntityManagerFactory", transactionManagerRef="offerTransactionManager") @EnableConfigurationProperties({OfferProperties.class,org.springframework.boot.autoconfigure.integration.IntegrationProperties.class}) @JpaDataRoute(boundPropertiesType=OfferProperties.class, routePackage="com.broadleafcommerce.promotion.offer", routeKey="offer", supportingRouteTypes={com.broadleafcommerce.data.tracking.core.data.TrackingDataRouteSupporting.class,com.broadleafcommerce.common.messaging.data.MessagingDataRouteSupporting.class,com.broadleafcommerce.data.tracking.core.data.ApplicationDataRouteSupporting.class,com.broadleafcommerce.translation.data.TranslationDataRouteSupporting.class,com.broadleafcommerce.common.dataexport.data.ExportDataRouteSupporting.class,com.broadleafcommerce.common.dataimport.data.ImportDataRouteSupporting.class}) @AutoConfigureAfter(org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration.class) public class OfferJpaAutoConfiguration extends Object
Author:
Nathan Moore (nathanmoore).
  • Constructor Details

    • OfferJpaAutoConfiguration

      public OfferJpaAutoConfiguration()
  • Method Details

    • jpaOfferRepositoryImpl

      @Bean @ConditionalOnMissingBean protected CustomizedOfferRepository<JpaOffer> jpaOfferRepositoryImpl(com.broadleafcommerce.data.tracking.core.TrackableBehaviorUtil behaviorUtil, com.broadleafcommerce.data.tracking.jpa.filtering.fetch.rsql.JpaFiltersCriteriaBuilder criteriaBuilder)
    • JpaPromotionQueryHelper

      @Bean @ConditionalOnMissingBean protected JpaPromotionQueryHelper JpaPromotionQueryHelper()
    • jpaMarketingMessageRepositoryImpl

      @Bean @ConditionalOnMissingBean protected CustomizedMarketingMessageRepository<JpaMarketingMessage> jpaMarketingMessageRepositoryImpl(com.broadleafcommerce.data.tracking.core.TrackableBehaviorUtil behaviorUtil, List<com.broadleafcommerce.data.tracking.core.service.RsqlQueryTransformer> rsqlQueryTransformers, cz.jirutka.rsql.parser.ast.RSQLVisitor<jakarta.persistence.criteria.Predicate,Class<?>> rsqlVisitor, com.broadleafcommerce.data.tracking.jpa.filtering.fetch.rsql.JpaFiltersCriteriaBuilder criteriaBuilder, com.broadleafcommerce.common.jpa.RepositoryEntityTypeManager repositoryEntityTypeManager)
    • jpaCampaignRepositoryImpl

      @Bean @ConditionalOnMissingBean public CustomizedCampaignRepository<JpaCampaign> jpaCampaignRepositoryImpl(com.broadleafcommerce.data.tracking.core.TrackableBehaviorUtil behaviorUtil, com.broadleafcommerce.data.tracking.jpa.filtering.fetch.rsql.JpaFiltersCriteriaBuilder catalogFilterRuleCriteriaBuilder, com.broadleafcommerce.common.jpa.RepositoryEntityTypeManager repositoryEntityTypeManager)
    • jpaOfferCodeRepositoryImpl

      @Bean @ConditionalOnMissingBean public CustomizedOfferCodeRepository<JpaOfferCode> jpaOfferCodeRepositoryImpl(com.broadleafcommerce.data.tracking.core.TrackableBehaviorUtil behaviorUtil, com.broadleafcommerce.data.tracking.jpa.filtering.fetch.rsql.JpaFiltersCriteriaBuilder catalogFilterRuleCriteriaBuilder, com.broadleafcommerce.common.jpa.RepositoryEntityTypeManager repositoryEntityTypeManager, List<com.broadleafcommerce.data.tracking.core.service.RsqlQueryTransformer> rsqlQueryTransformers, com.broadleafcommerce.data.tracking.jpa.filtering.fetch.rsql.JpaCriteriaBuilderRsqlVisitor rsqlVisitor)
    • jpaOfferAuditSummaryRepositoryImpl

      @Bean @ConditionalOnMissingBean public AlternateLifecycleOfferAuditSummaryRepository<JpaOfferAuditSummary> jpaOfferAuditSummaryRepositoryImpl(@Qualifier("offerTransactionTemplate") org.springframework.transaction.support.TransactionTemplate template, org.springframework.core.env.Environment environment)
    • jpaSharedCodeAuditSummaryRepositoryImpl

      @Bean @ConditionalOnMissingBean public AlternateLifecycleSharedCodeAuditSummaryRepository<JpaSharedCodeAuditSummary> jpaSharedCodeAuditSummaryRepositoryImpl(@Qualifier("offerTransactionTemplate") org.springframework.transaction.support.TransactionTemplate template, org.springframework.core.env.Environment environment)