Improve mapping function in ExtendedEntityManagerCreator.createProxy()

Closes gh-27456
This commit is contained in:
Сергей Цыпанов 2021-09-23 14:48:04 +03:00 committed by Sam Brannen
parent 4ec8ae42f4
commit 0268e76298
1 changed files with 4 additions and 4 deletions

View File

@ -230,10 +230,10 @@ public abstract class ExtendedEntityManagerCreator {
if (emIfc != null) { if (emIfc != null) {
interfaces = cachedEntityManagerInterfaces.computeIfAbsent(emIfc, key -> { interfaces = cachedEntityManagerInterfaces.computeIfAbsent(emIfc, key -> {
Set<Class<?>> ifcs = new LinkedHashSet<>(4); if (EntityManagerProxy.class.equals(key)) {
ifcs.add(key); return new Class<?>[] {key};
ifcs.add(EntityManagerProxy.class); }
return ClassUtils.toClassArray(ifcs); return new Class<?>[] {key, EntityManagerProxy.class};
}); });
} }
else { else {