Let's assume I have the following entities:
public class Group
{
public IList<Item> Items { get; set; }
}
public class Item
{
public Group Group { get; set; }
public string Name { get; set; }
}
Now I want Envers to create a revision for Group
when the Name
property of Item
has changed. The revision_on_collection_change
property just works if I change the collection (as the name suggests ;-) itself.
Is there a possibilty to setup Envers to 'connect' the parent entity with properties of its child element properties?