-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: q about: getCurrentSession().connection()
PostPosted: Tue Jul 24, 2007 7:51 am 
Senior
Senior

Joined: Sun Jun 11, 2006 10:41 am
Posts: 164
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]


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.