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: Best approach to exporting/importing
PostPosted: Mon Jun 11, 2007 12:50 pm 
Newbie

Joined: Tue Dec 07, 2004 12:44 pm
Posts: 13
Hi. We have two versions of the same application. They share some persistent objects (same class name and package), but they are slightly different in the second version, because of some modifications. We have lots of contents on the first application that we want to migrate to the second.

This is what we thought:

1.- Have two different jars with the persistent objects of each application.
2.- Have two different ClassLoader objects, with each one loading one of the jars.
3.- Have two different Hibernate configurations/sessions, each one associated to one of the class loaders.

We would load the objects from one session, create new objects on the second, and transfer the fields from one to another using reflection.

I think this is feasible, and we always have the option of using JDBC directly, which we would like to avoid.

Is there any alternative? Any thoughts about our approach?

Thanks in advance


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.