I think that merge has an implied flush that happens if it is required, i.e.
if there is an insert condition - it is necessary to assigned the object id
and validate that it stored correctly

John Davidson

On Tue, Jul 19, 2011 at 12:00 PM, gusgorman <[email protected]>wrote:

> Hi John,
>
> Thanks for the reply.
>
> Yes I release that in some cases an insert would be a valid action as
> part of a merge - but what I am getting at is that I wouldn't expect
> the sql to be generated if the session is not flushed (ie flush mode
> is set to never and session.Flush() is not called explicitly).
>
> Jordan.
>
>
> On Jul 18, 5:08 pm, John Davidson <[email protected]> wrote:
> > See
> >
> > http://stackoverflow.com/questions/170962/nhibernate-difference-betwe...
> >
> > for a description of what merge does. In some cases an insert would be a
> > valid action as part of a merge.
> >
> > John Davidson
> >
> > On Mon, Jul 18, 2011 at 10:50 AM, gusgorman <[email protected]
> >wrote:
> >
> >
> >
> >
> >
> >
> >
> > > No, I am not. I'm used GUIDs (which I assign myself in the constructor
> > > of the object)
> >
> > > On Jun 30, 9:13 pm, Dietrich <[email protected]> wrote:
> > > > Are you using Database Generated ID's such as an Identity column?
> >
> > > --
> > > 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.
>
> --
> 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.
>
>

-- 
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