After an exception the session is in a inconsistence state.You must throw
the session and open a new fresh session.

2008/10/28 Josh Berke <[EMAIL PROTECTED]>

>  How should nHibernate behave when a roll back is issued for example take
> the following use sequence:
>
>
>    1. User creates a new session and starts a transaction.
>    2. User updates his entity, and calls SaveOrUpdate.
>    3. User tries to commit the transaction; however, an error occurs.
>    4. User calls Rollback on the transaction.
>    5. User tries to save a different entity,
>    6. User calls flush
>
>
> At step six, what I am noticing is that nHibernate is trying to process the
> entity from step 2 resulting in the same error in step 3. Since this
> occurred within a transactional scope shouldn't nHibernate throw out the
> dirty entity when a rollback occurs?
>
>
> Thanks,
> Josh
>
>
> >
>


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