mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-17 16:39:29 +00:00
use target factory's ClassLoader in case of a raw EntityManagerFactory (SPR-6733)
This commit is contained in:
+1
-1
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user