Hello everybody,
I'm using Hibernate 3.6.10 and Envers to persist a complex datamodel with revisions. Everything works fine and I also track the entity names and ids modified during a revision in an extra table/entity (see https://docs.jboss.org/hibernate/envers/3.6/reference/en-US/html/revisionlog.html). My datamodel has a root entity and all other entities are related to this root entity. For Example: Entity A has a 0..n relationship to B and B has a 0..1 relationship to entity C.
My problem is, that I can see a change in entity C in a revision, but I'm not able to get the id of entity A which is influenced by the changes in entity C in this particular revision. Is there an standard way to do this? I could create a join-query to find entity A on base of the id of entity C, but in this case I would be forced to create seperate queries for a lot of entities.
Thanks, Christian
|