Hi All,
I posted a topic a few weeks ago about getting a list of items from the level 1 cache (see
http://forum.hibernate.org/viewtopic.php?t=937687).
Emmanuel suggested that an Interceptor might help. I managed to get this working to a degree, however I'm not entirely happy with the solution. It looks like a fair amount of overhead, and some of the logic is pretty tricky, and probably wouldn't work in a distributed environment.
I get the feeling that there must be an easier way to do this.
What I'm after is a list types and IDs of all objects that would be changed (including inserts and deletes) as a result of a transaction.commit() - actually I'm more interested in what work is lost as the result of a transaction.rollback, but this an identical set.
Any insights or suggestions? Is this information readily available within the SessionImpl or the transaction manager?