Skip to content

ClassTypeInformation: issue with enhanced classes #2589

Closed
@dellermann

Description

@dellermann

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

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions