-->
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: How to get connection in Hibernate
PostPosted: Mon Aug 29, 2005 12:57 am 
Newbie

Joined: Mon Aug 29, 2005 12:53 am
Posts: 13
How to get the JDBC connection in the current session in hibernate because I use this connection for generate the report?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 29, 2005 1:13 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
hmm - lets see...opening http://www.hibernate.org/hib_docs/v3/ap ... ssion.html or simply look at Session interface and search for connection and hey - its session.connection() :)

See that wasn't hard was it ?

/max

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 29, 2005 1:23 am 
Newbie

Joined: Mon Aug 29, 2005 12:53 am
Posts: 13
max wrote:
hmm - lets see...opening http://www.hibernate.org/hib_docs/v3/ap ... ssion.html or simply look at Session interface and search for connection and hey - its session.connection() :)

See that wasn't hard was it ?

/max


Thank you very much! I also think the function is called getConnection. I do not the other name.


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.