-->
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: Trying to understand when to use <synchronize>
PostPosted: Thu Apr 07, 2005 11:31 am 
Newbie

Joined: Mon Jan 12, 2004 10:06 am
Posts: 15
Hi all.

I'm starting to use hibernate3 and I can see in the test cases or in the examples on the manual that there is sometimes the tag <synchronize> but I cant find why and where I have to use it. Anybody can tell me where can I find info about this?

Thanks a lot.


Top
 Profile  
 
 Post subject: The magic of the <synchronize> tag
PostPosted: Thu Apr 07, 2005 5:47 pm 
Beginner
Beginner

Joined: Thu Mar 24, 2005 5:21 pm
Posts: 21
You can define in-memory, read-only "views" of data in cases where you are working with a schema that does not allow change (in this case, creation of a new view). Such a view entity would (obviously) depend on one or more other "normal" entities, viz. the entities that are involved in making up this view.
Use the <synchronize> tag to tell Hibernate which tables (entities)to synchronize this read-only entity with. This ensures that this derived entity does not return stale data when changes to the entities that it depends on are flushed.
HTH
Satish


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.