title: DAO classes have the same @Qualifier
body: <p>I have the source code of a website.</p>
  
  <p>This website uses spring, and I'am confused about the Injection.</p>
  
  <p>There are some DAO classes, on these DAO with a Qualifier :</p>
  
  <pre><code>@Repository("myDao")
  @Qualifier("myTransactionManager")
  public class MyCategoryDao {
  
  }
  </code></pre>
  
  <p>But there is also another bean with the same name of the Qualifier.</p>
  
  <p>And this bean is a JpaTransactionManager.</p>
  
  <pre><code>@Configuration
  @EnableTransactionManagement(mode = AdviceMode.PROXY)
  @ComponentScan(basePackages = "com.my.repository")
  public class DatabaseConfig {
      @Primary
      @Bean(name = "myTransactionManager")
      public JpaTransactionManager jpaTransactionManager(
      @Named("myEntityManagerFactory") EntityManagerFactory entityManagerFactory) {
  
      }
  }
  </code></pre>
  
  <p>I don't know why the bean and the DAOs have the same name/Qualifier.</p>
  
  <p>Wouldn't it conflict the others?</p>