Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Fetch original state of th object

Hi,

  I want to write attribute change validation rules. I gathered that eclipse
link automatically weave change tracker into the jpa entities + it uses
AttributeChangeTrackingPolicy (by default), hence keep the clone of the
original object.
Pre - condition :- Weaving should be enabled.
   (Please validate my understanding)

  How can I get the original state of the object. By original state I mean
state of object before the update chnages were applied.

  AttributeChangeListner acl = (  AttributeChangeListner) (((ChanageTracker)
xxxx)._persistence_getPropertyChangeListener())

  Now how to get the original state of the object???

Regards,
Gaurav Malhotra
-- 
View this message in context: http://www.nabble.com/Fetch-original-state-of-th-object-tp24488730p24488730.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top