Hibernate Envers: Retrieving the right revisions of an entity with a collection property

前端 未结 3 711
醉话见心
醉话见心 2021-01-27 06:18

I have two audited entities, A and B. Entity A holds a collection of entity B (annotated as One-to-many relationship). When inserting a new instance of A into the database, all

3条回答
  •  悲&欢浪女
    2021-01-27 06:32

    If you read entity A at revision 2, you will get the right data.

    There is no way currently to get a list of revisions where an entity or related entities changed (as is your case - rev 2 is a change only in B, not in a).

提交回复
热议问题