Quote:
2) Have the application evict unmodified objects. The code that would have to do this already knows what objects to evict, but it does not know which of them are dirty - is there a way to find that out?
I made some investigations about this some time ago. Unless things have changed there is no method that checks if only a specific entity is dirty or not. By digging into the internal API of Hibernate it was at least possible to detect some cases of dirtiness. The old thread about this is here:
viewtopic.php?f=1&t=991992