Hi all. I'm trying to write a Hibernate EventListener that is called not just when the properties of an entity change, but also when a set of associated entities changes.
The situation is that the contents of an association's PersistentBag are being modified during the session, and then the entity is being saved. At this point there is no callback to the PostUpdateEventListener. If, however, I change a property (like a String name) then the listener is called back OK.
My question is, how can I write a listener that is invoked both when the properties *or* the set of associated entities changes?
|