-->
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: One set of POJO's, multiple schemas?
PostPosted: Thu Sep 29, 2005 12:07 pm 
Newbie

Joined: Wed Sep 14, 2005 12:24 pm
Posts: 2
Location: Lansing, Michigan USA
I'm trying to apply Hibernate in the context of a data migration between two systems which have essentially identical schemae. I have a basic understanding of how Hibernate works as commonly used, but am seeking a conceptual overview of how I would approach the task of migrating data using Hibernate.

Is it simply a matter of creating two SessionFactories, each with its own set of mapping files, sharing a common set of POJO's or, if not, what general approach would be recommended? Finally, is Hibernate simply the wrong tool for the job? Any helpful advice is appreciated

Thanks,

Eric Adamson
Lansing, Michigan


Top
 Profile  
 
 Post subject: tool
PostPosted: Thu Sep 29, 2005 1:16 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
As much as I love Hibernate I would not consider H to be the best tool for the job.
I would rather recommend using iBatis for that.
Or if you already have one H mapping to the old schema then you might better off creating iBatis mappings for the new schema and persisting Hibernate fetched objects from old schema to new DB schema via iBatis session. H-2-iBatis approach worked very well for me about a year ago.

Or maybe specialized tool like Octopus http://octopus.objectweb.org/ would do the trick (did not try personally, but it looks promising).

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


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.