Hi, there
I am a new hibernate user. I am evaluating the hibernate's cross-session synchronization. I have some questions.
1.
I have 2 sessions, both are holding a same database record in a same type of objects. If in one session, the object is deleted by hibenate (session.delete(obj)), will the other session's object be synchronized?
2
Still 2 sessions, both read a same database table record. But the table is mapped in 2 different classes. For example, a table named "User", mapped in both "UserCls" and "AccountCls". Session 1 uses "UserCls" to read "User", Session 2 uses "AccountCls". The 2 sessions read a same "User" field concurrently. If in Session 1 the "UserCls" is deleted, will the Session 2's AccountCls be synchronized?
Thanks
|