use target factory's ClassLoader in case of a raw EntityManagerFactory (SPR-6733)
This commit is contained in:
parent
eddc5b8898
commit
0aee6e9f5b
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue