-->
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: Using Hibernate for data migration
PostPosted: Tue Mar 19, 2013 9:57 pm 
Newbie

Joined: Wed Mar 19, 2008 11:19 am
Posts: 15
Location: Orlando
I have scoured the internet for a decent answer, but have not had much luck in doing so. I have an upcoming data migration project in which data created in one version of an application will need to be imported/migrated to a new schema. My supervisor wants to read the source data using JDBC, and then use Hibernate to persist the data in the new schema. My approach does not involve Hibernate at all. One specific example of a migration is converting a "Table of Contents" which is logically a tree, but not so physically (no Parent ID column), and so I have to calculate that as I process each row. Also, I am doing identity inserts whereas "the powers that be" want to use Hibernate to generate new keys, and still maintain the structure. I like Hibernate, but I just don't feel like there's any benefit in using it for this purpose. As a matter of fact, I feel like it's adding unnecessary complexity. I'd like to hear the pros and cons of each approach and maybe even a vote as to which approach you would take. Thanks!


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.