From: Colin E. <ce...@mo...> - 2002-12-14 03:08:10
|
Hi, I need to have a LifeCycle callback for when an object is detected to be dirty during a flush, basically at the same point that Interceptor.onFlushDirty() is called. I'm trying to track changes to persistent objects and log changes to a database table, so I want to use the Session object inside the transaction to do this, and LifeCycle currently doesn't give notification of flushes. Looking at the code, I would add LifeCycle callback in SessionImpl.flushEntities(). Am I missing anywhere else that an update could happen? Also, is it worth while for me to submit this as a patch? Changing the LifeCycle interface would break existing usages, but I could extend it to LifeCycleFlush or something and add the callback in SessionImpl.flushEntities() if it would be useful to other people. Thanks Colin -- Colin Evans Mobilesys www.mobilesys.com |