entity « Version « JPA Q&A





1. how to configure hibernate not to update @Version on each access to entity    stackoverflow.com

i have a simple query that returns an entity, and when i look at hibernate SQL output i see that when i execute this query hibernate updates the @Version field (on ...

2. Best pattern for storing multiple versions of the entity?    forum.hibernate.org

What is the best pattern for storing multiple versions of the same entity? Two tables? One for the entity X and another to store all the versioned data? I've played around with the mapping, and I don't think this does what I want it to do. I think it's used for something entirely differently. I guess what I want to ...

3. Entity versioning    forum.hibernate.org

Hi everyone. I need to implement entity versioning in on of my projects and wanted to ask what's the best practice to do it. I tried Envers and found it pretty cool, but it has one drawback that I cannot afford: it doesn't generate revision for parent entity when child entity has been changed. E.g. entity A has a set of ...

4. 3rd party db-system - entity versioning?    forum.hibernate.org

5. Best practices for versioning database entities    forum.hibernate.org

Hi, I'm looking for a way to maintain historical data on all entities in my database, including links. In other words, I want to be able to query the full state of an object graph at any point in time. for example, if the user changes a quantity in a LineItem, I want to save a new version of the LineItem ...

6. How to disable automatic increment of an entity's version    forum.hibernate.org

Hi I met a problem when I use Hibernate Annotation 3.2.1 GA. A entity A is associated with many entity B. A and B are mapped by a parent-child relationship by the annotation. I use the optimistic versioning or locking. But I donot want the entity A's version to be increased when an instance of B is added to or removed ...