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: session.merge() alternative in nhibernate?
PostPosted: Fri Jul 07, 2006 12:16 pm 
Newbie

Joined: Fri Jul 07, 2006 12:04 pm
Posts: 4
NHibernate version: 1.0.2

Hey folks,

Is there a workaround for the lack of session.merge() (HB3 feature)?

Problem:
I make changes to a lazy-loaded object across multiple postbacks.
I need to re-attach it, cause a postback may require something that is "lazy". But because I might have made changes (which I can't persist to the DB between the postbacks, untill explicitly requested by user) lock() would throw "dirty collection" exception.


Anyone knows a workaround/solution?

TIA,
ET.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 08, 2006 2:18 am 
Regular
Regular

Joined: Mon May 16, 2005 1:35 am
Posts: 67
SaveOrUpdateCopy(...) in NH is the closest equivalent of Merge in H3.


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.