Refresh works but from what I can tell Refresh only restores a single
object.  If it does I'd have to enumerate all the objects in the
session and refresh them manually.

It also hits the database again; aren't the original values already
cached in the session?


On Jun 19, 8:13 pm, Fabio Maulo <[email protected]> wrote:
> You are doing something wrong in somewhere else. My advice is not hope that
> is a bug in NH.
> If for "restore data" you mean restore old data of your in memory objects
> what you should do, after rollback, is a Refresh
>
> 2009/6/19 darren <[email protected]>
>
>
>
> > If I load data into a session, start a transaction, make some changes,
> > then rollback the transaction why is the session data not restored to
> > the state it was in when the transaction started?
>
> > I'm trying to figure out how implement cancel edit behaviour and
> > haven't been able to find any examples.
>
> --
> 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