Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » HistoryPolicy: Remove fields from history table
HistoryPolicy: Remove fields from history table [message #1766767] Tue, 27 June 2017 06:47
Steffen Gebert is currently offline Steffen GebertFriend
Messages: 1
Registered: August 2012
Junior Member
I successfully added a HistoryPolicy using a customizer as described in the example in the EclipseLink Wiki.

However, I want to omit some of the fields from the history table.

I tried to fiddle with the descriptor's mappings, but it seems this also affects the original entity and not only the mapping for the history table.

Is there any way to remove fields (field mappings?) before storing the history? I've read that one can query the entity's state at a certain point back in time using query hints, so I see the point why removing partial information isn't a good idea. In our case, this wouldn't matter, as the table would be only consumed by another application.

Thanks for your help!
Previous Topic: NullPointerException in PersistenceUnitUtil.getIdentifier()
Next Topic:Use moxy to handle 3rd party interfaces
Goto Forum:
  


Current Time: Sun Dec 17 11:58:08 GMT 2017

Powered by FUDForum. Page generated in 0.01932 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software