Ah thank you, I understand better now. I would have expected the flush
to give an exception if the session is no longer usable.

On Mon, Jul 20, 2009 at 1:11 PM, Markus Zywitza<[email protected]> wrote:
> After an NH/AR exception the session cannot be used anymore, so you have to
> create a new one. If you use ValidateIsUnique instead, the validation engine
> checks before flushing by running a select against the table. If the
> validator throws, you can still use the session after correcting the error.
>
> -Markus
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" 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/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to