history « Version « JPA Q&A





1. Implementing a data history / versioning solution for a Hibernate-based application (with a twist)    stackoverflow.com

First the basic facts: Java webapp, Spring, Hibernate, MySQL. The situation is that I have a complex object model of e.g. a Car. It's composed of many objects (Engine, Tires, ...) with many-to-one ...

2. Hibernate: maintaining previous versions of entities    stackoverflow.com

Is there a standard way of maintaining a history of Entity versions using hibernate? Or is it a case of getting the database to add records to an archive table on update/delete ...

3. History and versioning possible ?    forum.hibernate.org

Hello, I know that this is maybe a simple task, but I didn't find the clou... We need a simple history/versioning support for a customer, so that every change to an object is always an "insert" with a different version number and timestamp. The foreign keys are a composite from ID and max(timestamp) . E.g. Parent ------------------ ID,version, timstamp 1, 1, ...

4. Persisting history/version?    forum.hibernate.org

Does Hibernate have functionality for "object version history"? What I mean is, that every time I persist an object I want the object's history persisted as well - so I could, for example, subsequently request that object as it was on such and such a date in the past (not just the currently existing version in the database). Thanks, Peter

5. Revisiting the object history/versioning question    forum.hibernate.org

I see that a frequent question is how to keep a history of every version of an object. I have this same need myself. I have also seen a lot of complex solutions to this problem (one involving DB triggers and views, another involving a complicated custom interceptor, etc). But it seems to me there could be a much simpler solution. ...