Nov 28

Add the following to persistence.xml:

<property name="hibernate.hbm2ddl.auto" value="update"/>

written by objects \\ tags: , , , ,

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: , ,