-->
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.  [ 2 posts ] 
Author Message
 Post subject: Closing connection ?
PostPosted: Wed Jan 18, 2006 12:15 pm 
Beginner
Beginner

Joined: Thu Apr 14, 2005 11:39 am
Posts: 31
I am using Spring and Hibernate. After making call to database, do I need to close thge connection or relase etc ?.

list =getHibernateTemplate().find("from DocNumber where ACTIVE_IND=\'Y\'");

Do I need to do anything after this line to make sure it releases the conection ?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 18, 2006 1:07 pm 
Newbie

Joined: Thu Dec 09, 2004 8:02 am
Posts: 5
Not if you are using the HibernateTemplate, which you are. Spring will do it automatically.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.