Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Can eclipselink log entity changes?
Can eclipselink log entity changes? [message #520497] Fri, 12 March 2010 10:59 Go to next message
Michal Ondrovic is currently offline Michal Ondrovic
Messages: 7
Registered: February 2010
Junior Member
Dear all,

I need to log the changes in the entities when saving. Is there any support in Eclipselink for this? Or I have to write my own code, which compares the entity before and after save...

Thank you

Michael
Re: Can eclipselink log entity changes? [message #520522 is a reply to message #520497] Fri, 12 March 2010 12:30 Go to previous message
Tom Eugelink is currently offline Tom Eugelink
Messages: 807
Registered: July 2009
Senior Member
Eclipselink has a history function where the previous version of an entity is written to a history table with a valid from / until field combination.

http://wiki.eclipse.org/Configuring_a_Descriptor_(ELUG)#Conf iguring_a_History_Policy


On 2010-03-12 16:59, anaque@gmail.com wrote:
> Dear all,
>
> I need to log the changes in the entities when saving. Is there any
> support in Eclipselink for this? Or I have to write my own code, which
> compares the entity before and after save...
> Thank you
>
> Michael
Previous Topic:EclipseLink 2.0.1 on update site
Next Topic:How to load all objects in JPA 2.0 using Criteria
Goto Forum:
  


Current Time: Sat Aug 23 05:37:31 EDT 2014

Powered by FUDForum. Page generated in 0.01901 seconds