If I create a transaction like so:
Code:
Session sess = factory.openSession();
Transaction tx;
try {
tx = sess.beginTransaction();
//do some work
...
tx.commit();
}
catch (Exception e) {
if (tx!=null) tx.rollback();
throw e;
}
finally {
sess.close();
}
What happens to any objects updated (and flushed) before I begin the transaction? In JDBC you can either have autocommit set to true or false. The docs say autocommit is off by default so will object updates flushed before the sess.beginTransaction() also be included in the commit?