Announcement Announcement Module
Collapse
No announcement yet.
HibernateTransactionManager and DefaultTransactionStatus.setRollbackOnly() Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • HibernateTransactionManager and DefaultTransactionStatus.setRollbackOnly()

    Hi All!

    Can anyone clarify why HibernateTransactionManager in its doSetRollbackOnly (see below) does NOT call setRollbackOnly on the status. It would seem a logical place to be...

    Code:
    protected void doSetRollbackOnly(DefaultTransactionStatus status) {
      HibernateTransactionObject txObject = (HibernateTransactionObject) status.getTransaction();
      if (status.isDebug()) {
        logger.debug("Setting Hibernate transaction on Session [" +
          SessionFactoryUtils.toString(txObject.getSessionHolder().getSession()) + "] rollback-only");
      }
      txObject.setRollbackOnly();
    }
Working...
X