Skip to content

PersistentEntities should only be created for user class in case of proxy instance. #2485

Closed
@christophstrobl

Description

@christophstrobl

Build time generated proxy classes should be unpacked to only create and cache PersistentEntity instances for the target user class. This is necessary because generated instances may be picked up during the entity scan potentially polluting the cache within the MappingContext.
The computed PersistentEntity instance is to be cache for both the proxy and user key.

Sample:

// user class
public class Coupon { }

// proxy
public class Coupon$$SpringProxy$873fa2e extends Coupon implements LazyLoadingProxy, SpringProxy, Advised, _AdvisedSupportAware { }

Metadata

Metadata

Labels

in: mappingMapping and conversion infrastructure

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions