Closed Rahul1d closed 4 years ago
@Configuration @EnableJpaRepositories(repositoryFactoryBeanClass = EntityGraphJpaRepositoryFactoryBean.class, basePackages = {"com.dummy.app.repository"}) public class RepositoryConfig { }
Hi @ylcinyakup , @Rahul1d,
There must be something wrong with your Spring configuration. We used this version in production without issue.
If you can't provide your full application git repository, I can't help you.
i just write @Rahul1d questions answer :D he should set basePackages value
Oh ok @ylcinyakup :)
The basePackage was missing . Thanks @ylcinyakup .
@configuration @EnableJpaRepositories(repositoryFactoryBeanClass = EntityGraphJpaRepositoryFactoryBean.class, basePackages = {"com.dummy.app.repository"}) public class RepositoryConfig { } Life saver, this works well for me
Hi,
I am using spring jpa 2.2.6.RELEASE and spring-data-jpa-entity-graph 2.2.8. I have added @EnableJpaRepositories(repositoryFactoryBeanClass = EntityGraphJpaRepositoryFactoryBean.class) to config class.
Repository bean is Extending EntityGraphJpaRepository<T, Integer>,EntityGraphQuerydslPredicateExecutor.
I have followed all steps as mentiioned in the docs.
JPA Config. ` @Configuration @EnableJpaAuditing(auditorAwareRef = "auditorAware") @EnableJpaRepositories(repositoryFactoryBeanClass = EntityGraphJpaRepositoryFactoryBean.class) //@EnableJpaRepositories public class JpaConfig {
Repository:.