[EMAIL PROTECTED] wrote:
Re: [Hibernate] Precedence for Lifecycle and Interceptor? Why not just look in the source of SessionImpl?

Good point.  Didn't know where to look.

For those who are interested, the order is:

Save or Update:
 - Interceptor.isUnsaved

Save:
 - Lifecycle.onSave
 - Interceptor.onSave

Update:
 - Lifecycle.onUpdate

Load:
 - Interceptor.onLoad
 - Lifecycle.onLoad

Delete:
 - Interceptor.onDelete
 - Lifecycle.onDelete

Flush:
 - Interceptor.preFlush
 - Interceptor.findDirty
 - Interceptor.onFluchDirty
 - Interceptor.postFlush

Perhaps this should be added to the docs somewhere?

-Mark

Reply via email to