-->
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: Schema update problem when migrating from H2->H3
PostPosted: Tue Apr 26, 2005 8:48 am 
Newbie

Joined: Mon Oct 04, 2004 10:54 am
Posts: 15
Hi, I'm migrating from Hibernate 2.1.7 to Hibernate version:3. The schema update functionality worked alright with the 2.1.7 version of Hibernate (on HSQLDB 1.7.3 and the latest 1.8).

But after installing Hibernate 3, schemaupdate wants to add the constraints again (even though they already exists and there are no changes in the mapping-files). The problem is maybe that metadata lookup differs from H2 (I havn't change database version since then)???
Ex:
config.configure(getHibernateMappingFile());
new SchemaUpdate(config).execute(true, true);

I didn't notice this problem until I started up with a rather big HSQL DB, containing millions of rows. Due to this problem, my database grows with at least a factor 10.

(Just to be clear, HSQLDB doesn't allocate this amount of space to minimize fragmentation - if anyone would suggest that...)

Any ideas what to do?
Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 26, 2005 9:12 am 
Newbie

Joined: Mon Oct 04, 2004 10:54 am
Posts: 15
Just a thought. It might just be that all constraints didn't exists or were disabled, due to some reason.


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.