-
Notifications
You must be signed in to change notification settings - Fork 692
Closed
Labels
in: mappingMapping and conversion infrastructureMapping and conversion infrastructurestatus: feedback-providedFeedback has been providedFeedback has been providedtype: bugA general bugA general bugtype: regressionA regression from a previous releaseA regression from a previous release
Milestone
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
.
Metadata
Metadata
Assignees
Labels
in: mappingMapping and conversion infrastructureMapping and conversion infrastructurestatus: feedback-providedFeedback has been providedFeedback has been providedtype: bugA general bugA general bugtype: regressionA regression from a previous releaseA regression from a previous release