Are you getting a new session from the SessionFactory after the exception is
thrown? 

I believe that if an exception is thrown then the session is no longer
valid.

Cheers,
Craig.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of YJingLee
Sent: Thursday, 16 July 2009 5:17 PM
To: nhusers
Subject: [nhusers] SaveOrUpdate error


Hi all:
I first SaveOrUpdate object,due to db unique fail, modify object ,
once again SaveOrUpdate this object appear
{NHibernate.StaleObjectStateException: Row was updated or deleted by
another transaction (or unsaved-value mapping was incorrect)

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]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to