mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-25 16:29:28 +00:00
Improve mapping function in ExtendedEntityManagerCreator.createProxy()
Closes gh-27456
This commit is contained in:
committed by
Sam Brannen
parent
4ec8ae42f4
commit
0268e76298
+4
-4
@@ -230,10 +230,10 @@ public abstract class ExtendedEntityManagerCreator {
|
||||
|
||||
if (emIfc != null) {
|
||||
interfaces = cachedEntityManagerInterfaces.computeIfAbsent(emIfc, key -> {
|
||||
Set<Class<?>> ifcs = new LinkedHashSet<>(4);
|
||||
ifcs.add(key);
|
||||
ifcs.add(EntityManagerProxy.class);
|
||||
return ClassUtils.toClassArray(ifcs);
|
||||
if (EntityManagerProxy.class.equals(key)) {
|
||||
return new Class<?>[] {key};
|
||||
}
|
||||
return new Class<?>[] {key, EntityManagerProxy.class};
|
||||
});
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user