-->
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: WARNING: afterTransactionCompletion() was never called
PostPosted: Wed Dec 17, 2003 9:15 am 
Newbie

Joined: Wed Dec 17, 2003 8:30 am
Posts: 1
sometimes use hibernate i see following warning:
[code]17.12.2003 14:54:51 net.sf.hibernate.impl.SessionImpl finalize
WARNING: afterTransactionCompletion() was never called[/code]
what i can do with it?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 01, 2004 12:45 am 
Newbie

Joined: Tue Dec 30, 2003 4:41 am
Posts: 3
Location: Melbourne
I believe this error occurs when you don't call transaction.commit();

I would appreciate a more seasoned hibernate veteran explaining the implications of such a warning message.

For instance:

    is it necessary to call transaction.commit() after simply retreiving some rows from the database through a select statement?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 01, 2004 12:03 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
You should allways do everything database related inside a transaction, this includes simple read operations.


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.