title: BeanDefinitionOverrideException when I extend jpa repository
body: <p>I have a multi-module project where I have an auto-generated repository</p>
  <pre class="lang-java prettyprint-override"><code>/**
  * Generated by Spring Data Generator on 13/04/2022
  */
  @Repository
  public interface ParentRepository extends JpaRepository&lt;Entity, EntityPK&gt;,
   JpaSpecificationExecutor&lt;Entity&gt;,
   QuerydslPredicateExecutor&lt;Entity&gt; {
  
  }
  </code></pre>
  <p>And I want to extend it in one of my services so This is what I did</p>
  <pre class="lang-java prettyprint-override"><code>@Repository(RepositoriesIds.CHILD_REPOSITORY_ID) //this referees to a string used as a bean id
  public interface ChildRepository extends ParentRepository {
      Optional&lt;Entity&gt; findByA(String a);
  }
  
  </code></pre>
  <p>and when I want to use my bean I use <code>@Qualifier(RepositoriesIds.CHILD_REPOSITORY_ID)</code>.
  After I run my application I get this exception</p>
  <pre><code>java.lang.IllegalStateException: Failed to load ApplicationContext
  
      at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:132)
      at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:123)
  ...
  Caused by: org.springframework.beans.factory.support.BeanDefinitionOverrideException: Invalid bean definition with name 'bean_name' defined in fully.qualified.path.BeanName defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Cannot register bean definition [Root bean: class [org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in fully.qualified.BeanName defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration] for bean 'bean_name': There is already [Root bean: class [org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean]; scope=; abstract=false; lazyInit=true; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in fully.qualified.BeanName defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration] bound.
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.registerBeanDefinition(DefaultListableBeanFactory.java:943)
      at org.springframework.data.repository.config.RepositoryConfigurationDelegate.registerRepositoriesIn(RepositoryConfigurationDelegate.java:178)
      at org.springframework.boot.autoconfigure.data.AbstractRepositoryConfigurationSourceSupport.registerBeanDefinitions(AbstractRepositoryConfigurationSourceSupport.java:62)
  </code></pre>
  <p>How to fix it?</p>