Hi,
I have a simple question, because I am not sure I understood the docs correctly: I know a session is single threaded, that means there should be only one thread at a time accessing the Session object, right? But how about persistent objects: in the following scenario:
1) thread 1 opens a Session and gets some persistent objects A, B and C from the database
2) the Session stays open
3) thread1 ,2 ,3 all work on each of the objects A, B, C and modify them, but no thread accesses the Session object
4) thread1 closes the Session again
Is this allowed, can all three threads 1,2,3 work on the persistent objects A, B, C concurrently as long as they don't touch the session object?
Best Regards,
Ingo
|