Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Eclipselink and CGLib-enhanced entity types

Hello eclipselink users,

I am wondering whether eclipselink supports entities that are proxied by CGlib at runtime. I have the following situation: If certain entity classes are loaded from the persistence layer, their instantiation strategy may proxy them to support custom lazy-loading behavior (thats a long story, short). After implementing this i realized that - not quite unexpected - eclipselink could no longer retrieve the ClassDescriptor metadata for the enhanced entity type, nor could modifications to instances of the type be commited. Apparently, there are quite a number of <entity>.getClass() == <x> checks and other direct usages of the entity type in eclipselink which effectively prevent proxy usage.

Am i correct or is there a way to proxy entity types without these sideeffects?

Best,
Olaf


Back to the top