I mean ...NH has a dangerous *Auto-Flush* using lazy=extra add a even more dangerous *Auto-commit* is something I, personally, dislike.
2009/4/8 Fabio Maulo <[email protected]> > commit a transaction after load a collection ?No thanks. > > NH has a dangerous Flush using lazy=extra add a even more dangerous commit > is something I, personally, dislike. > > 2009/4/8 Fernando Zago <[email protected]> > > something like this: >> Find the session; >> Check if it already got an alive transaction; >> If NOT, Creates transaction - Set a internal Boolean variable to know >> that transactions created by nHibernate >> (maybe start an try/catch) >> Load Entity Data; >> Check that internal Boolean variable >> if TRUE set transaction Commit() >> (catch) >> Check that internal Boolean variable >> RollBack() >> >> >> >> > > > -- > Fabio Maulo > -- 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 -~----------~----~----~----~------~----~------~--~---
