-->
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: Cannot Save Big Entity with more than one one-to-many bags
PostPosted: Wed Jul 07, 2010 7:32 am 
Newbie

Joined: Wed Jul 07, 2010 7:22 am
Posts: 1
I have Order Entity,it hasa one-to-many bag OrderServices and one-to-many bag OrderPaymentDocument,if a fill this collections and doing save its saving all ok,but OrderPayment Document hasa IdBag(many-to-many) to OrderServices if i fill this idbug and saving all together Nhibernate give me error,
object references an unsaved transient instance - save the transient instance before flushing. Type: Kz.WebFusion.Entities.Business.Orders.Order, Entity: Kz.WebFusion.Entities.Business.Orders.Order,i thing this error is a that he cant save many-to-many because OrderServices in yet saved,i cant save it separately because i need OrderServices to include in OrderPaymentDocument,can you help me save a big entity


Top
 Profile  
 
 Post subject: Re: Cannot Save Big Entity with more than one one-to-many bags
PostPosted: Wed Jul 07, 2010 8:13 am 
Newbie

Joined: Wed Sep 24, 2008 12:48 pm
Posts: 6
gevornairi, this is the Java forum, you might get more answers if you post your question in the NHibernate forum.


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.