|
Nov 28
|
Add the following to persistence.xml:
<property name="hibernate.hbm2ddl.auto" value="update"/>
|
|
Add the following to persistence.xml:
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" /> |
|
Recent Comments