@Override public void begin() throws HibernateException { if ( ! valid ) { throw new TransactionException( "Transaction instance is no longer valid" ); } if ( localStatus == LocalStatus.ACTIVE ) { throw new TransactionException( "nested transactions not supported" ); } if ( localStatus != LocalStatus.NOT_ACTIVE ) { throw new TransactionException( "reuse of Transaction instances not supported" ); } LOG.debug( "begin" ); doBegin(); localStatus = LocalStatus.ACTIVE; afterTransactionBegin(); }
@Override public void begin() throws HibernateException { if ( ! valid ) { throw new TransactionException( "Transaction instance is no longer valid" ); } if ( localStatus == LocalStatus.ACTIVE ) { throw new TransactionException( "nested transactions not supported" ); } if ( localStatus != LocalStatus.NOT_ACTIVE ) { throw new TransactionException( "reuse of Transaction instances not supported" ); } LOG.debug( "begin" ); doBegin(); localStatus = LocalStatus.ACTIVE; afterTransactionBegin(); }