This is a new practice... write a request here and before have an answerer
create a new JIRA.http://nhjira.koah.net/browse/NH-1807

The answer is on JIRA; next time, please, avoid this behavior and in general
avoid to put links to forum threads in JIRA.
Thanks.

2009/6/1 Fabio Maulo <[email protected]>

> 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
>



-- 
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