Being relatively new to hibernate, I never stop reading the reference manual. Today I found the following in section 7.8 (Flushing Sessions):
Quote:
Except when you explicity flush(), there are absolutely no guarantees about when the Session executes the JDBC calls, ...
Could someone just help me to get things clear: I thought that sessions can be considered as logical transactions. I planned to use sessions exactly like this. E.g. a user makes changes to an object through an UI. On user commit I would flush the session, on user abort, I would discard the session hopefully hibernate acts like I think it acts.
Is this scenario coherent with hibernate architecture or may the session be flushed at arbitrary moments without explicitely flushing it?
Thanks for your help,
Peter