-->
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: Differential Replication in hibernate
PostPosted: Thu Jun 29, 2006 6:49 am 
Newbie

Joined: Thu Jun 29, 2006 3:33 am
Posts: 2
Hi,

I have a view in oracle which needs to be replicated in Hsqldb through hibernate on
start up of tomcat and at certain specified intervals.

for ex:Consider a oracle_view in oracle
Name City PhNo
ABC Pune 1234
DEF Mumbai 2345

Now on start up of tomcat the hibernate_view in hibernate is empty
so the follwong data from oracle_view in oracle is replicated to
hibernate_view in hibernate.

so hibernate_view consists of

Name City PhNo
ABC Pune 1234
DEF Mumbai 2345

Now consider that the data in oracle_view in oracle is changed as shown
below

Name City PhNo
ABC Pune 1234
DEF Mumbai 5656 <!--this is the changed row-->

Now at the specified time interval this change needs to be replicated in
hibernate_view in hibernate

So i delete the entire data of hibernate_view and copy the data from oracle_view
to the hibernate_view.This works fine if the data to be replicated is small but in
case of huge data ,I need some mechanism through which i need not delete the entire data of
hibernate_view and replicate only the changed row of oracle_view in the
hibernate_view.

Thus in short,
1)I need an efficient mechanism for replicating data the first time i.e on start up of tomcat
2)An efficient way for differential replication i.e replicating only the changed rows at the
specified intervals.

Thanks & Regards,
AKshay


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 30, 2006 1:29 am 
Regular
Regular

Joined: Tue May 16, 2006 3:32 am
Posts: 117
Have a look at the following link. See if it helps.

http://www.hibernate.org/hib_docs/v3/re ... eplicating


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.