-->
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: About session.flush
PostPosted: Mon Jun 26, 2006 2:36 am 
Beginner
Beginner

Joined: Tue Feb 28, 2006 3:16 am
Posts: 28
In a single transaction how many time i can use the Flush method(), is there any constaint on this.
For ex.

BeginTransaction
Session.SaveOrUpdate(object);
Session.Flush();
Session.Delete(object);
Session.Flush();
CommitTransaction;


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 26, 2006 2:07 pm 
Expert
Expert

Joined: Tue Aug 23, 2005 5:52 am
Posts: 335
Nope, no constraint. Every time you call flush it will execute any pending SQL statements required to flush the memory state of your session to the database. If you change nothing then flush will flush exactly that - nothing.

Symon.


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.