2009/6/1 Arman <[email protected]> > > in fact , i have a GETALLSTUDENT method that open a session , get all > students , and the close the session, > then when user hit the OK button , i open a new session , and update > the updated student in that , and close it again. > > do you mean that i should not close the session in querying ?
No, I mean that you can't have the old state in a fresh session. You should use session.Merge to reattach and update or something else to get the previous state (note this ever mean hit a SELECT before update). -- 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 -~----------~----~----~----~------~----~------~--~---
