Hello,
This is what Hibernate API says about Session.connection():
Code:
Get the JDBC connection. Applications are responsible for calling commit/rollback upon the connection before closing the Session.
In my application, the current flow is -
Get a session with getCurrentSession (JTA), then:
1. do some Hib work with the Session
2. do some JDBC work with the session.connection()
3. do some more Hib work with the Session
What do I need to do, to make sure all steps are performed within the same transaction (if it's even possible)? Not sure how/if I should call connection.commit()...
thanks.
Hibernate version: 3.2.2
Name and version of the database you are using:oracle 10g
[/code]