-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: A new user cross-session synchronization question
PostPosted: Thu May 26, 2005 11:19 am 
Newbie

Joined: Thu May 19, 2005 4:54 pm
Posts: 2
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


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 26, 2005 11:21 am 
Newbie

Joined: Thu May 19, 2005 4:54 pm
Posts: 2
Sorry, just realized they are 2 questions:-)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.