-->
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.  [ 1 post ] 
Author Message
 Post subject: Illegal attempt to associate a collection with two open sess
PostPosted: Sat Jan 02, 2010 2:41 am 
Beginner
Beginner

Joined: Sat Aug 01, 2009 6:44 am
Posts: 24
Hi i am developing an ERP in Nhibernate with C#
i have an object business partner which contains certainly different collections of address, bank accounts.....
when i save a new business object ... it does swiftly...

but when i fetch any BusinessPartner From database and add one or two more address in to collection of business partner and try to saveorupdate() it does not work and throw me this exception



Illegal attempt to associate a collection with two open sessions

Its my Third day on this problem... dont know where is the problem...
Hoping that some one can help me out


in Mapping File i tried all type of cascading but didn't work then i stick to save-update


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.