I'm using Hibernate 2.1.3.
I have a peace of code:
Code:
some method() {
( ... )
transaction = session.beginTransaction();
// Some Hibernate inserts
// Some bulk updates with plain JDBC
transaction.commit();
( ... )
}
As I've seen in the docs, when using direct JDBC transactions, I have to explicitly
commit or
rollback the transaction. Am I right?
My question: does the JDBC transaction and the Hibernate transaction work as a single transaction or do I have two separate transactions?
By commiting the JDBC transaction, is the Hibernate transaction aware of this?
Really need to clarify this issue.
Thanks in advance.