What exactly is the precedence for the Lifecycle and Interceptor methods, especially for those with the same names? From my reading of the docs, I'm guessing that the Lifecycle has precedence, so in general, events would normally take place in the following order:
Interceptor.instantiate() Lifecycle.onLoad() Interceptor.onLoad()
Interceptor.isUnsaved() Lifecycle.onSave() Interceptor.onSave()
Lifecycle.onUpdate()
Lifecycle.onDelete() Interceptor.onDelete()
Interceptor.preFlush() Interceptor.findDirty() Interceptor.onFlushDirty() Interceptor.postFlush()
Is this correct, or am I missing something?
In particular, I'm trying to figure out how to answer Interceptor.isUnsaved() correctly. Can I just check if the version on the entity object is > 0 (when exactly is the version set anyway)? Or do I have to actually set a flag in either the Lifecycle or Intercepter's onLoad() and onSave()?
Thanks, -Mark
------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel