Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save eric2323223/3615911 to your computer and use it in GitHub Desktop.
Save eric2323223/3615911 to your computer and use it in GitHub Desktop.
configuring SharedEntityManagerBean in applicationContext.xml
<bean id="entityManagerFactory"
class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
...
</bean>
<bean id="entityManager"
class="org.springframework.orm.jpa.support.SharedEntityManagerBean">
<property name="entityManagerFactory" ref="entityManagerFactory" />
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment