-->
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.  [ 1 post ] 
Author Message
 Post subject: howto migrate selected objects between databases
PostPosted: Thu Sep 02, 2004 6:06 pm 
Newbie

Joined: Thu Sep 02, 2004 5:55 pm
Posts: 1
Suppose an application wants to migrate certain persistent objects from one database to the next, e.g. there is a persistent object on a development server and either no object or an old version of an object on a production server, and you want to update the production server to contain the new object/data with the same ids. Seems like you'd be using 2 separate sessions one for each databse, but from there I wasn't sure what would work. replicate() says it will work with transient objects, but by definition things pulled from the development server are not transient. I guess I could try to "load" into a transient object from one session and then try to replicate, or then try to save?

What is the correct paradigm for what I am trying to do? Is there a name for this kind of thing? What methods can I look at?


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

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.