Closed
Description
After upgrade to Spring Boot 2.6 loading objects from MongoDB using DBRef(lazy = true)
doesn't work any more. AbstractMappingContext.hasPersistentEntityFor()
doesn't find find enhanced classes such as FooBar$$EnhancerByCGLIB$$
. It is caused by commit c866b42 which changes src/main/java/org/springframework/data/util/ClassTypeInformation.java line 94 from
super(ProxyUtils.getUserClass(type), getTypeVariableMap(type));
to
super(type, getTypeVariableMap(type));
Thus, enhanced classes will not be found in map AbstractMappingContext.persistentEntities
.