I'v read NH refference manual again.
I have found only one way to miss this message

> > > object references an unsaved transient instance - save the transient
> > > instance before flushing. Type: Helpdesk.Person, Entity:
> > > Helpdesk.Person

by setting cascade= "save-update" everywear near refference and
collections in mapping files. But this will bring in much extra work
everytime when saving and updationg objects even if refferenced
objects are persisted. I'm worring about this.

Thanks for your help!


On Aug 23, 1:16 am, alexey_baranov <[email protected]> wrote:
> I will
> Thank you!
>
> On Aug 23, 12:26 am, Fabio Maulo <[email protected]> wrote:
>
> > Go herehttp://nhforge.org/doc/nh/en/index.html
>
> > <http://nhforge.org/doc/nh/en/index.html>and look for : cascade
>
> > On Sun, Aug 22, 2010 at 3:12 PM, alexey_baranov <[email protected]> wrote:
> > > I'm confusing by this message
>
> > > object references an unsaved transient instance - save the transient
> > > instance before flushing. Type: Helpdesk.Person, Entity:
> > > Helpdesk.Person
>
> > > and have two questions
>
> > > 1. is anybody have situations where transient entity doesn't sould be
> > > persisted automaticaly when it refferenced by persisting entity by the
> > > same session ?
> > > 2. is it possible to ask NHibernate store transient entities
> > > refferenced by persisting one without manual coding?
>
> > > Thanks!
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "nhusers" group.
> > > To post to this group, send email to [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<nhusers%[email protected]>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/nhusers?hl=en.
>
> > --
> > Fabio Maulo

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to