-->
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.  [ 3 posts ] 
Author Message
 Post subject: How to synchronize with database state?
PostPosted: Thu Feb 10, 2005 12:08 pm 
Newbie

Joined: Thu Feb 10, 2005 11:41 am
Posts: 2
Hi

I am thinking to evaluate Hibernate as DAO implementation for my next project.

How does Hibernate guarantee objects are synchronized with database state,
in typical enterprice situation which is many other processes, ususlly back end rocess, updates same tables?

EJB has "commit option" to handle this situation, but that kills performance.
With my knowledge, only read only objects are cachable, and others are just overhead and waste of the memory space.
How Hibernate solves this issue?

FYI, I have rsearched FAQ, but I could not find out this topic.
thanks,
Tak


Top
 Profile  
 
 Post subject: Versioning
PostPosted: Thu Feb 10, 2005 4:45 pm 
Newbie

Joined: Tue Dec 14, 2004 2:57 pm
Posts: 12
Hibernate is an object/relational mapping tool. Like any multi-access datastore, you need to choose a locking method. Hibernate helps with implementing optamistic and pessamistic locking. See the documentation for how it does this.


Top
 Profile  
 
 Post subject: Re: Versioning
PostPosted: Thu Feb 10, 2005 6:52 pm 
Newbie

Joined: Thu Feb 10, 2005 11:41 am
Posts: 2
Sparrow wrote:
Hibernate is an object/relational mapping tool. Like any multi-access datastore, you need to choose a locking method. Hibernate helps with implementing optamistic and pessamistic locking. See the documentation for how it does this.


Still not clear.
I might misunderstand the OR mapping mechanism.

When objects are updated in Hibernate, the locking would help this issue.
What about get property (read) from object?
How does hibernate guarantee the state of the object is same as the state in the database, which other processes might change the state.

Please give me a brief idea about it.
Tak


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.