support passing the event object to the before* and after* event handlers, ignore for JPA since event listeners are not allowed to evict changes