Spring + Hibernate + JPA: How to reload EntityManagerFactory at runtime
问题 I have been searching for this the last few hours maybe some of you can help me. I try to achieve a reload of my mapping info in EntityManagerFactory (or SessionFactory) at runtime in spring The EntityManagerFactory is defined as follows: <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> <property name="persistenceXmlLocation" value="persistence.xml" /> <property name="persistenceUnitName" value="JPAService" /> <property name=