title: How to specify parent for bean in Spring annotation config?
body: <p>How to specify a parent for bean in Spring annotation config?
  BaseDao "baseDao" bean should be the parent for</p>
  
  <pre><code>@Configuration
  public class CategoryContext {
  @Bean
  @Scope("prototype")
  public CategorySqlHibernateDAO categorySqlHibernateDAO() {
      return new CategorySqlHibernateDAO();
  }
  }
  </code></pre>
  
  <p>Or Spring 4.2.5 automatically will do this?</p>