It appears that clearing the session if a validation error is found
does not guarantee that the invalid entity is not persisted.  So I'm
guessing that the only way to not persist an entity that was hydrated
from a repository and made invalid within some business/service layer
is to make sure the transaction is rolled back?

Can anyone verify this for me?

I really appreciate all the help I get here.  Thank You!
Gary Brunton

On Jun 21, 9:18 am, Dario Quintana <[email protected]>
wrote:
> Hard to recover from a validation exception at the very end of a request.
> Don't know if it's a good approach.
>
> On Fri, Jun 19, 2009 at 8:28 PM, Gary Brunton <[email protected]> wrote:
>
> > @Dario,
> > The flush/commit is taking part at the very end of the request and not
> > in my business/service code.  It is automatic and happens always.
>
> --
> Dario Quintanahttp://darioquintana.com.ar
--~--~---------~--~----~------------~-------~--~----~
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