If you serialize the entity before calling EntitiyManager.clear(), then the $proxy wrappers should not be there. If you serialize it after EM.clear() then some of them will be there. That is the bug reported in OPENJPA-1097 and is what the TestDetachNoProxy testcase demonstrates.
If you are not seeing the same behavior as the testcase, then what properties are you setting in your persistence.xml, passing in as a Map of properties to createEMF(), setting in the Java environment, or setting via annotations? Anything like DetachedStateField or DetachedStateManager? -Donald On 3/18/10 1:05 PM, ubiteck wrote: > > Thank you. I did a mistake in my test case but the result is the same. The > detached entity is considered as detached but the object still contains > proxy ????
