use target factory's ClassLoader in case of a raw EntityManagerFactory (SPR-6733)
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3048 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
ad6e7e4895
commit
aea5a7183a
|
|
@ -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