I guess I should also mention that I'm thinking of using something like the scheme called "Long session with automatic versioning" from the Hib docs.
Basically, it shows it as:
Code:
session.reconnect();
foo.setProperty("bar");
session.flush();
sesssion.connection().commit();
session.disconnect();
But in my case, I'm hoping that I can modify my foo while the session is still disconnected, and then reconnect and flush:
Code:
foo.setProperty("bar");
....
session.reconnect();
session.flush();
sesssion.connection().commit();
session.disconnect();