Class EntityGraphJpaRepositoryFactoryBean<R extends org.springframework.data.repository.Repository<T,I>,T,I>

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<R,T,I>
com.cosium.spring.data.jpa.entity.graph.repository.support.EntityGraphJpaRepositoryFactoryBean<R,T,I>
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 EntityGraphJpaRepositoryFactoryBean<R extends org.springframework.data.repository.Repository<T,I>,T,I> extends org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean<R,T,I>
Forces the use of RepositoryEntityManagerEntityGraphInjector while targeting EntityGraphJpaRepositoryFactory.

Created on 18/03/17.

Author:
Reda.Housni-Alaoui
  • Field Summary

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

    OBJECT_TYPE_ATTRIBUTE
  • Constructor Summary

    Constructors
    Constructor
    Description
    EntityGraphJpaRepositoryFactoryBean(Class<? extends R> repositoryInterface)
    Creates a new JpaRepositoryFactoryBean for the given repository interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.springframework.data.repository.core.support.RepositoryFactorySupport
    createRepositoryFactory(javax.persistence.EntityManager entityManager)
     
    void
    setEntityManager(javax.persistence.EntityManager entityManager)
     

    Methods inherited from class org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean

    afterPropertiesSet, doCreateRepositoryFactory, 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

    • EntityGraphJpaRepositoryFactoryBean

      public EntityGraphJpaRepositoryFactoryBean(Class<? extends R> repositoryInterface)
      Creates a new JpaRepositoryFactoryBean for the given repository interface.
      Parameters:
      repositoryInterface - must not be null.
  • Method Details

    • setEntityManager

      public void setEntityManager(javax.persistence.EntityManager entityManager)
      Overrides:
      setEntityManager in class org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean<R extends org.springframework.data.repository.Repository<T,I>,T,I>
    • 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 org.springframework.data.repository.Repository<T,I>,T,I>