Class InventoryJpaAutoConfiguration


  • @Configuration
    @ConditionalOnProperty(name="broadleaf.database.provider",
                           havingValue="jpa")
    @EnableJpaRepositories(basePackageClasses=JpaInventoryLocationRepository.class,
                           repositoryFactoryBeanClass=com.broadleafcommerce.data.tracking.jpa.filtering.narrow.factory.JpaTrackableRepositoryFactoryBean.class,
                           entityManagerFactoryRef="inventoryEntityManagerFactory",
                           transactionManagerRef="inventoryTransactionManager")
    @JpaEntityScan(basePackages="com.broadleafcommerce.inventory.provider.jpa.domain",
                   routePackage="com.broadleafcommerce.inventory")
    @EnableConfigurationProperties(InventoryProperties.class)
    @JpaDataRoute(boundPropertiesType=InventoryProperties.class,
                  routePackage="com.broadleafcommerce.inventory",
                  routeKey="inventory",
                  supportingRouteTypes={com.broadleafcommerce.data.tracking.core.data.TrackingDataRouteSupporting.class,com.broadleafcommerce.data.tracking.core.data.ApplicationDataRouteSupporting.class,com.broadleafcommerce.common.messaging.data.MessagingDataRouteSupporting.class,com.broadleafcommerce.common.dataexport.data.ExportDataRouteSupporting.class,com.broadleafcommerce.common.dataimport.data.ImportDataRouteSupporting.class,com.broadleafcommerce.translation.data.TranslationDataRouteSupporting.class})
    @AutoConfigureAfter(org.springframework.boot.autoconfigure.data.jpa.JpaRepositoriesAutoConfiguration.class)
    public class InventoryJpaAutoConfiguration
    extends Object
    JPA Configuration class for Spring.
    Author:
    Kelly Tisdell (ktisdell)
    • Constructor Detail

      • InventoryJpaAutoConfiguration

        public InventoryJpaAutoConfiguration()