(1) It would be better to do this stuff in =Interceptor.onFlushDirty(),
Interceptor.onDelete()= and =Interceptor.onSave()= -
=Lifecycle.onUpdate()= is only called after an explicit
=Session.update()= call.
(2) You might be able to implement some kind of /generic/
=getDocument()= method using the Hibernate metadata API. |