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: Flush specified objects?
PostPosted: Thu Dec 07, 2006 2:41 pm 
Newbie

Joined: Mon Sep 25, 2006 11:02 pm
Posts: 10
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

NHibernate version: 1.2.0


I am curious if there is a way to Flush one object (and it's related objects) in a session without Flushing all objects in the Session? I believe the answer is NO, but I just wanted to know if there were any avenues to do that that I was unaware of.

It seems like flushing a set of specified entities would be useful in certain scenarios and was wondering what other people thought...

Thanks,
Cole


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 07, 2006 5:19 pm 
Contributor
Contributor

Joined: Sat Sep 24, 2005 11:25 am
Posts: 198
No, it is not possible.
For those scenarios, it is usually preferred to either open a new session, assoicate them with it, or evict the rest of the entities from the first one.


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.