Class DefaultRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,​ID>,​S,​ID>

java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,​S,​ID>
org.springframework.data.repository.core.support.TransactionalRepositoryFactoryBeanSupport<T,​S,​ID>
org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean<T,​S,​ID>
dev.claudio.jpatemporal.repository.support.DefaultRepositoryFactoryBean<T,​S,​ID>
Type Parameters:
T - the type of the repository
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.FactoryBean<T>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationEventPublisherAware, org.springframework.data.repository.core.support.RepositoryFactoryInformation<S,​ID>

public class DefaultRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,​ID>,​S,​ID> extends org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean<T,​S,​ID>
Adapter to setup implementation TemporalRepositoryImpl against interface TemporalRepository. Repositories that don't extend TemporalRepository use instead whatever implementation is defined by the base class JpaRepositoryFactoryBean (usually SimpleJpaRepository)
  • Field Summary

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

    OBJECT_TYPE_ATTRIBUTE
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultRepositoryFactoryBean​(Class<? extends T> repositoryInterface)
     
  • Method Summary

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultRepositoryFactoryBean

      public DefaultRepositoryFactoryBean(Class<? extends T> repositoryInterface)
  • Method Details

    • createRepositoryFactory

      @NonNull protected org.springframework.data.repository.core.support.RepositoryFactorySupport createRepositoryFactory(@NonNull javax.persistence.EntityManager entityManager)
      Overrides:
      createRepositoryFactory in class org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,​ID>,​S,​ID>