Merge branch '5.3.x'

This commit is contained in:
Sam Brannen
2021-10-25 16:31:55 +02:00

View File

@@ -228,10 +228,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 {