EclipseLink has a great feature to automatically maintain the history of the data using a HistoryPolicy. This is really fantastic!
I know it is possible to access the historic data with a HistoricalSession. But this is not helpful for people using the JPA API, which is the majority of users I guess.
Is there a way to query historical data with JPA/EntityManager? Perhabs with some kind of Customizer? I have searched the Docs, but have not found a solution yet. Using a ReadAllQuery is not appropiate because this would mean that I have to duplicate all the code to have one query for the current data and one for the historical data.
> EclipseLink has a great feature to automatically maintain the history of
> the data using a HistoryPolicy. This is really fantastic!
You just made me a very very very happy man. I had no idea Eclipselink has such a feature! (I did post a question about this on this newsgroup some time ago.) So I was contemplating about how to bolt this on top of the BM, because Informix has no practical solution for this and using stored procedures is a disaster to maintain.