-->
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: CMT and flush()
PostPosted: Thu Feb 05, 2004 9:03 pm 
Beginner
Beginner

Joined: Thu Nov 20, 2003 8:13 pm
Posts: 31
Location: Newport Beach, CA
Should flush() always be called before close() in CMT (with ThreadLocal)?
Does it need to be called at all?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 05, 2004 9:18 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
A flush tell hibernate to send the SQL for the current unit or work to the SQL engine. You can test it for yourself, Hibernate has an implied flush when commit is called. Keeping that in mind, in the CMT case your not calling the transaction operations, the container is so yes you need to call flush.


Top
 Profile  
 
 Post subject: =)
PostPosted: Thu Feb 05, 2004 9:44 pm 
Beginner
Beginner

Joined: Thu Nov 20, 2003 8:13 pm
Posts: 31
Location: Newport Beach, CA
Thank you david


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.