-->
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: Hibernator (Eclipse) nad SchemaUpdate
PostPosted: Mon May 24, 2004 10:47 am 
Beginner
Beginner

Joined: Wed Nov 05, 2003 7:51 am
Posts: 22
Hi All,

I work with the Hibernator plugin (0.9.6) in Eclipse 3.0M8 and i have a problem with the Update Schema functionwhich may be part of a larger problem with the ShemaUpdate tool.

The Update Schema button recreates the whole database (drops all of the tables, indexes...etc) instead of modifying the schema where it changed (adding new columns, dropping unused columns...etc).

Is SchemaUpdate capable of updating the schema incrementally (making the changes only not re-creating everything)?

If SchemaUpdate is capable of incremental updates, is there a way to tell Hibernator to call it that way?


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 25, 2004 7:17 pm 
Newbie

Joined: Tue May 25, 2004 7:12 pm
Posts: 1
I think you should read the section "15.1.5. Incremental schema updates" from the Hibernate user manual...

There is another class used for the update operation,

net.sf.hibernate.tool.hbm2ddl.SchemaUpdate,

replacing the cretation one,

net.sf.hibernate.tool.hbm2ddl.SchemaExport

_________________
Carlos E. Knippschild


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 26, 2004 4:57 am 
Beginner
Beginner

Joined: Wed Nov 05, 2003 7:51 am
Posts: 22
You seem to have misunderstood the original question.

I know that SchemaExport creates the schema completely and SchemaUpdate is supposed to incrementaly update the schema.

The question was why SchemaUpdate doesn't do incremental updates (because it drops the whole schema and recreates it which hardly can be called incremental update).


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 26, 2004 5:36 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Most likely because the metadata provided by your JDBC driver sucks.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


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.