You can use an HQL update.

    Diego


On Mon, Aug 23, 2010 at 03:26, [email protected] <[email protected]> wrote:

> Hello, It maybe a naive question but I am curious if there is anyway
> to turn off row update count.
> My scenarios is as follows:
>
> Consider a persistant entity and two concurrent sessions, where one of
> these sessions will update the entity and
> the other "may" delete the entity. IF deletion occurs before updating
> I am getting stalestateexception while updating. NHibernate rightfully
> warns me the entity does not exist in the DB anymore and it can't
> update it. So far so good.  But I am well aware of this situation and
> I optionally would like tell NH to ignore the update if the entity is
> deleted already.
> What should I do ?
>
> --
> 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.
>
>

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