提交 0aee6e9f 编写于 作者: J Juergen Hoeller

use target factory's ClassLoader in case of a raw EntityManagerFactory (SPR-6733)

上级 eddc5b88
......@@ -147,7 +147,7 @@ public abstract class SharedEntityManagerCreator {
this.proxyClassLoader = ((EntityManagerFactoryInfo) this.targetFactory).getBeanClassLoader();
}
else {
this.proxyClassLoader = EntityManagerFactory.class.getClassLoader();
this.proxyClassLoader = this.targetFactory.getClass().getClassLoader();
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册