Myk,
Thanks for the quick reply, but I'm still a little fuzzy. As I step through program code of my application and watch the database with the hibern8ide tool - I don't see changes until I make the session.connection().commit() call. This is true even in the scenario you described below (flushing a delete before an update, etc.). So, I'm led to believe that calling flush() isn't actually changing the database. Is this true? What am I ensuring gets updated when I call flush()?
Also, another question. In a scenario where I want to commit changes (one unit of work is done), and I want to immediately call another query (to begin the next unit of work), is it OK to continue with the same session, or should I close and reopen it?
Thanks,
James
|