We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ec8ae4 commit 0268e76Copy full SHA for 0268e76
spring-orm/src/main/java/org/springframework/orm/jpa/ExtendedEntityManagerCreator.java
@@ -230,10 +230,10 @@ private static EntityManager createProxy(
230
231
if (emIfc != null) {
232
interfaces = cachedEntityManagerInterfaces.computeIfAbsent(emIfc, key -> {
233
- Set<Class<?>> ifcs = new LinkedHashSet<>(4);
234
- ifcs.add(key);
235
- ifcs.add(EntityManagerProxy.class);
236
- return ClassUtils.toClassArray(ifcs);
+ if (EntityManagerProxy.class.equals(key)) {
+ return new Class<?>[] {key};
+ }
+ return new Class<?>[] {key, EntityManagerProxy.class};
237
});
238
}
239
else {
0 commit comments