-->
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.  [ 4 posts ] 
Author Message
 Post subject: HowTo migrate a schema when changing the inheritance mapping
PostPosted: Thu Nov 24, 2005 1:20 pm 
Newbie

Joined: Mon Nov 21, 2005 1:02 pm
Posts: 5
Hi,
will will change the database mapping for the inheritance mapping from "Table per subclass" to "Table per class hierarchy" to increase the database performance.

Which is the easiest way to migrate my data from the old database schema to the new schema? Is there any tool support?

Thanks for your help
Peter Fouquet


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 24, 2005 1:25 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
for the datamodel side, there is hbm2ddl.


Top
 Profile  
 
 Post subject: HowTo migrate a schema when changing the inheritance mapping
PostPosted: Thu Nov 24, 2005 1:41 pm 
Newbie

Joined: Mon Nov 21, 2005 1:02 pm
Posts: 5
Hi Dennis,
my problem is the data migration for more than 100 tables with many foreign key relationships to the new database model.

I'm searching for a solution like:
a) read all objects with the old schema
b) detach the objects from the old persistence session or dump the objects in a temporary store
c) store the objects with the new schema

Kind regards for your help
Peter


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 24, 2005 1:45 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
oh, so the domain model isn't going to change? just hibernate conf and data model? if that is the case, see this stuff ... http://www.hibernate.org/hib_docs/v3/re ... eplicating


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.