-->
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.  [ 3 posts ] 
Author Message
 Post subject: session.connection() is deprecated
PostPosted: Wed Dec 16, 2009 6:05 am 
Newbie

Joined: Fri Dec 04, 2009 5:10 am
Posts: 14
Hello All,
I need to execute a jdbc querry. For that I need a connection. When I write session.connection. It appears to be deprecated . Can anyone tell me what is the correct way of getting it.


Top
 Profile  
 
 Post subject: Re: session.connection() is deprecated
PostPosted: Wed Dec 16, 2009 7:14 am 
Beginner
Beginner

Joined: Mon Dec 14, 2009 12:26 am
Posts: 23
You are trying to get the underlying JDBC connection for a Session, in order to execute custom JDBC code directly?

That's not marked as deprecated in https://www.hibernate.org/hib_docs/v3/a ... ssion.html . What Hibernate version are you using?


Top
 Profile  
 
 Post subject: Re: session.connection() is deprecated
PostPosted: Fri Jan 01, 2010 5:22 am 
Newbie

Joined: Fri Dec 04, 2009 5:10 am
Posts: 14
I am using hibernate 3.2.0


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

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.