Oct 11

There is a getSessionFactory() method in LocalContainerEntityManagerFactoryBean, so you can define a session factory bean in spring using the following:


<bean id="sessionFactory" 
   factory-bean="entityManagerFactory" 
   factory-method="getSessionFactory" />

written by objects \\ tags: , ,