-->
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: synchronize persistent entities
PostPosted: Wed Nov 12, 2003 7:02 am 
Newbie

Joined: Tue Oct 28, 2003 8:00 am
Posts: 16
Location: Karlsruhe, Germany
hi,

I have following problem to solve:

we have a server with persistent objects managed with hibernate.
ids are generated from hibernate (uuid) and every object has a timestamp column.

our application have to run on a client who connects at startup to the server, read data from the server, store these data to the local database with the same structure (same mappings and so on) as the server.
After that the application have to run on the client the same way as on the server.

how can I store the persistent object on my local database with hibernate so that the id property and the timestamp property has the same value as on the server ?

what can I do if my object contains other objects which should retain here ids too ?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 12, 2003 7:08 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Hibernate 2.1 provides the replicate() method for this.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 12, 2003 8:27 am 
Newbie

Joined: Tue Oct 28, 2003 8:00 am
Posts: 16
Location: Karlsruhe, Germany
gavin wrote:
Hibernate 2.1 provides the replicate() method for this.


that would make me happy, I will download 2.1 beta 6.

thanks


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.