amila733 wrote:
Hi
You can use annotation and xml both in same application
Amila
(Dont' forget to rate if helps)
thanks for the responce,
do i need to specify the different session factory?
here is my current config in the beanFactory.xml
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
<property name="dataSource" ref="dataSource"/>
<property name="annotatedClasses">
my question is : do i need to add the following in the beanfactory.xml
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref bean="dataSource"/>
in addition, can you send me an example on this, such as xml config and the beanfactory xml for both xml mapping and annotation, thanks so lot