[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.rt.eclipselink] Re: Refreshing objects with @Transient fields
|
Looking at the code, this appears to a bug. The PostLoad event should be
called on the clone. The issues is that PostLoad is translated into the
EclipseLink Descriptor events, PostRefresh and PostClone, however
PostRefresh is not called on the clone in a refresh in a UnitOfWork when
outside of an early transaction (but it should be). It is also odd that
PostBuild does not also trigger a PostLoad, as this would be required for
read-only objects.
Please log a bug for this.
As a workaround if you register for the Descriptor event PostMerge, you
should get this event in your refresh. You can register for the event
using a DescriptorCustomizer to configure the DescriptorEventManager of
the ClassDescriptor.
---
James
http://www.nabble.com/EclipseLink---Users-f26658.html