Jesus Angeles
Jesus Angeles

Reputation: 13

how to do spring javaconfig inheritance

How do I make a javaconfig version for the below?

<bean id="parentDao" class="com.MyHibernateDao">
    <property name="sessionFactory" ref="mySessionFactory" />
</bean>

<bean id="childDao" class="com.ChildHibernateImpl" parent="parentDao"/>

(btw, Is there any documentation for Spring Javaconfig?)

Regards, j

Upvotes: 0

Views: 674

Answers (1)

Jesus Angeles
Jesus Angeles

Reputation: 13

As far as I have researched, there is no templating way that is similar to the XML sample shown, where the 'parent' attribute is used.

Upvotes: 1

Related Questions