Howdy,
Short question:
=========
I'm looking for some way to get the capabilities of the hibernate Interceptor without having to perform a flush (which is required for onFlushDirty to be called ).
Longer explanation:
============
We're using spring for hibernate/transactions, so we're trying to keep transaction mgmt out of the application. But I'd like to put data replication to another db ( different data model, not hibernate based, 'manual' replication required ) in the application layer because failures will require user to resolve
Soo...I can't use a hibernate interceptor (called by flush) since by the time it is called ( again with spring managed txn ), I've already left the application layer...
Any ideas on what to do here to get a list of my database changes that have occured for the current (open) transaction? Just use a plane old Spring method interceptor for the Session methods ( e.g. save, update, delete )?
Thanks in advance!!
|