Class SearchRepositoryFactoryBean<R extends SearchRepository<T,​I>,​T,​I extends Serializable>

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.FactoryBean<R>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationEventPublisherAware, org.springframework.data.repository.core.support.RepositoryFactoryInformation<T,​I>

    public class SearchRepositoryFactoryBean<R extends SearchRepository<T,​I>,​T,​I extends Serializable>
    extends org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean<R,​T,​I>
    A custom JpaRepositoryFactoryBean.
    See 4.6.2. Adding custom behavior to all repositories from the reference Documentation for further details.
    Author:
    Matthias Müller
    • Field Summary

      • Fields inherited from interface org.springframework.beans.factory.FactoryBean

        OBJECT_TYPE_ATTRIBUTE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.springframework.data.repository.core.support.RepositoryFactorySupport createRepositoryFactory​(javax.persistence.EntityManager entityManager)  
      • Methods inherited from class org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean

        afterPropertiesSet, doCreateRepositoryFactory, setEntityManager, setEntityPathResolver, setEscapeCharacter, setMappingContext, setQueryMethodFactory
      • Methods inherited from class org.springframework.data.repository.core.support.TransactionalRepositoryFactoryBeanSupport

        createRepositoryFactory, setBeanFactory, setEnableDefaultTransactions, setTransactionManager
      • Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport

        addRepositoryFactoryCustomizer, createDefaultQueryMethodEvaluationContextProvider, getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragments
    • Constructor Detail

      • SearchRepositoryFactoryBean

        public SearchRepositoryFactoryBean​(Class<? extends R> repositoryInterface)
    • Method Detail

      • createRepositoryFactory

        protected org.springframework.data.repository.core.support.RepositoryFactorySupport createRepositoryFactory​(javax.persistence.EntityManager entityManager)
        Overrides:
        createRepositoryFactory in class org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean<R extends SearchRepository<T,​I>,​T,​I extends Serializable>