Hi,
We use the new Hibernate event layer to add additional data to our objects before they are saved. Tpically we use an object that extends DefaultSaveOrUpdateEventListener.
This works fine when explicitly saving objects, but not when a save comes about as a result of a cascade save via a relationship. In this instance, our event listener never gets called.
We have tried events "save-update", "save", "update" and "create" but none of these are called when an object is saved due to a cascade.
Please advise - is there any way to catch the event that an insert or update is occurring as a result of a cascade save?
Thanks,
cjsceats
|