Beginner |
|
Joined: Tue Aug 26, 2003 9:50 am Posts: 34 Location: Weiden Opf. / Germany
|
Are they supported by Hibernate?
The questions is, if i have code liked this:
Transaction tx = null;
try {
tx = hibernateSession.beginTransaction();
Transaction nestedTx = hibernateSession.beginTransaction();
persistentObject.changeValue("newValue");
nestedTx.commit();
.... more business logic ....
tx.commit();
}
catch (Exception ex) {
if (tx != null) {
tx.rollback();
log.error(e, e);
}
}
Will the tx.rollback() roll the nestedTx back as well?
|
|